From: Dirk H Bartley Date: Sun, 22 Mar 2009 01:45:04 +0000 (+0000) Subject: Fixes to get restoration to work with multiple connections. X-Git-Tag: Release-7.0.0~3275 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d7bcd1fa5ef3b58b54e7693f6cfcfe59c6b628d0;p=bacula%2Fbacula Fixes to get restoration to work with multiple connections. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8579 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/bcomm/dircomm.cpp b/bacula/src/qt-console/bcomm/dircomm.cpp index 180027319d..0fdcfb7933 100644 --- a/bacula/src/qt-console/bcomm/dircomm.cpp +++ b/bacula/src/qt-console/bcomm/dircomm.cpp @@ -359,7 +359,7 @@ int DirComm::read() break; case BNET_RUN_CMD: if (mainWin->m_commDebug) Pmsg1(000, "conn %i RUN CMD\n", m_conn); - new runCmdPage(); + new runCmdPage(m_conn); break; case BNET_START_RTREE: if (mainWin->m_commDebug) Pmsg1(000, "conn %i START RTREE CMD\n", m_conn); diff --git a/bacula/src/qt-console/run/run.h b/bacula/src/qt-console/run/run.h index 40e1728940..70693f473f 100644 --- a/bacula/src/qt-console/run/run.h +++ b/bacula/src/qt-console/run/run.h @@ -30,7 +30,7 @@ class runCmdPage : public Pages, public Ui::runCmdForm Q_OBJECT public: - runCmdPage(); + runCmdPage(int conn); public slots: void okButtonPushed(); diff --git a/bacula/src/qt-console/run/runcmd.cpp b/bacula/src/qt-console/run/runcmd.cpp index ce1f7d5820..f511b10d5a 100644 --- a/bacula/src/qt-console/run/runcmd.cpp +++ b/bacula/src/qt-console/run/runcmd.cpp @@ -46,14 +46,15 @@ /* * Setup all the combo boxes and display the dialog */ -runCmdPage::runCmdPage() +runCmdPage::runCmdPage(int conn) { m_name = tr("Restore Run"); pgInitialize(); setupUi(this); QTreeWidgetItem* thisitem = mainWin->getFromHash(this); thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/restore.png"))); - m_conn = m_console->notifyOff(); + m_conn = conn; + m_console->notify(conn, false); fill(); m_console->discardToPrompt(m_conn); @@ -160,7 +161,7 @@ void runCmdPage::okButtonPushed() displayhtml += cmd + "\n"; m_console->display_html(displayhtml); m_console->display_text("\n"); - m_console->write_dir(cmd.toUtf8().data()); + m_console->write_dir(m_conn, cmd.toUtf8().data()); m_console->displayToPrompt(m_conn); // consoleCommand(cmd); ***FIXME set back to consoleCommand when connection issue is resolved