From: Dirk H Bartley Date: Fri, 27 Mar 2009 14:57:16 +0000 (+0000) Subject: Let's make the current tree widget before the wait state current again before turning X-Git-Tag: Release-7.0.0~3242 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bb740bbe4e814bbf4cd6fc815539cc79848a795e;p=bacula%2Fbacula Let's make the current tree widget before the wait state current again before turning the signals back on. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8613 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/mainwin.cpp b/bacula/src/qt-console/mainwin.cpp index be3fbce36f..5ab9e9569e 100644 --- a/bacula/src/qt-console/mainwin.cpp +++ b/bacula/src/qt-console/mainwin.cpp @@ -288,6 +288,7 @@ void MainWin::waitEnter() { app->setOverrideCursor(QCursor(Qt::WaitCursor)); disconnectSignals(); + m_waitTreeItem = treeWidget->currentItem(); } /* @@ -296,6 +297,8 @@ void MainWin::waitEnter() void MainWin::waitExit() { app->restoreOverrideCursor(); + if (m_waitTreeItem != treeWidget->currentItem()) + treeWidget->setCurrentItem(m_waitTreeItem); connectSignals(); } diff --git a/bacula/src/qt-console/mainwin.h b/bacula/src/qt-console/mainwin.h index 8472e9f330..25809663fe 100644 --- a/bacula/src/qt-console/mainwin.h +++ b/bacula/src/qt-console/mainwin.h @@ -145,6 +145,7 @@ private: QStringList m_cmd_history; int m_cmd_last; QTreeWidgetItem *m_firstItem; + QTreeWidgetItem *m_waitTreeItem; bool m_isClosing; };