From b22d3085ac3ffb63904493e7d0a9f9e3f1873e1a Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Mon, 30 Jul 2007 15:42:40 +0000 Subject: [PATCH] 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 --- bacula/src/qt-console/restore/restoretree.cpp | 9 ++-- bacula/src/qt-console/restore/restoretree.ui | 42 +++++++++---------- 2 files changed, 25 insertions(+), 26 deletions(-) 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 -- 2.39.2