From: Dirk H Bartley Date: Mon, 30 Jul 2007 15:42:40 +0000 (+0000) Subject: Re-Add client="client" to restore command. Play a little with the X-Git-Tag: Release-7.0.0~5920 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0494fd0d957fac2009078f18e96678998bcbfe76;p=bacula%2Fbacula Re-Add client="client" to restore command. Play a little with the restoretree.ui file to get widgets a little more even. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5266 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/restore/restoretree.cpp b/bacula/src/qt-console/restore/restoretree.cpp index b2e5b7b3f8..17b1e8f8e4 100644 --- a/bacula/src/qt-console/restore/restoretree.cpp +++ b/bacula/src/qt-console/restore/restoretree.cpp @@ -224,9 +224,8 @@ void restoreTree::populateDirectoryTree() m_jobQuery += " LIMIT " + limit; } - if (mainWin->m_sqlDebug) { - Pmsg1(000, "Query cmd : %s\n", m_jobQuery.toUtf8().data()); - } + if (mainWin->m_rtPopDirDebug) + Pmsg1(000, "m_jobQuery : %s\n", m_jobQuery.toUtf8().data()); prBar1->setValue(ontask++); prLabel1->setText("Task " + QString("%1").arg(ontask)+ " of " + QString("%1").arg(taskcount)); prBar2->setValue(0); @@ -691,9 +690,8 @@ void restoreTree::populateJobTable() limit.setNum(limitSpinBox->value()); jobQuery += " LIMIT " + limit; } - if (mainWin->m_sqlDebug) { + if (mainWin->m_sqlDebug) Pmsg1(000, "Query cmd : %s\n", jobQuery.toUtf8().data()); - } QStringList results; if (m_console->sql_cmd(jobQuery, results)) { @@ -1588,6 +1586,7 @@ void restoreTree::restoreButtonPushed() jobOption += "\""; QString cmd = QString("restore"); cmd += jobOption + + " client=\"" + m_prevClientCombo + "\"" + " file=\"?" + tempTable + "\" done"; if (mainWin->m_commandDebug) Pmsg1(000, "preRestore command \'%s\'\n", cmd.toUtf8().data()); diff --git a/bacula/src/qt-console/restore/restoretree.ui b/bacula/src/qt-console/restore/restoretree.ui index 9cb45a7706..eb25ce2e50 100644 --- a/bacula/src/qt-console/restore/restoretree.ui +++ b/bacula/src/qt-console/restore/restoretree.ui @@ -5,7 +5,7 @@ 0 0 - 817 + 711 524 @@ -155,39 +155,39 @@ 20 - 23 - 661 - 79 + 59 + 669 + 95 900 - 79 + 95 - 6 + 3 - 0 + 2 - 0 + 2 - 6 + 4 - 0 + 2 - 6 + 3 @@ -221,10 +221,10 @@ - 3 + 2 - 9 + 3 @@ -256,10 +256,10 @@ - 3 + 2 - 0 + 3 @@ -291,10 +291,10 @@ - 3 + 2 - 0 + 3 @@ -326,10 +326,10 @@ - 3 + 2 - 0 + 3 @@ -356,10 +356,10 @@ - 3 + 2 - 0 + 3