]> git.sur5r.net Git - bacula/bacula/commitdiff
Let's make the current tree widget before the wait state current again before turning
authorDirk H Bartley <dbartley@schupan.com>
Fri, 27 Mar 2009 14:57:16 +0000 (14:57 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Fri, 27 Mar 2009 14:57:16 +0000 (14:57 +0000)
the signals back on.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8613 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/mainwin.cpp
bacula/src/qt-console/mainwin.h

index be3fbce36fee2ae2637d9a8a550a5dd12c047c45..5ab9e9569e27330f4a07ed3b75525b46272038db 100644 (file)
@@ -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();
 }
 
index 8472e9f33080dc4bdf064521363f13142af511fb..25809663fef3271b4f85270d457b0918e73e93da 100644 (file)
@@ -145,6 +145,7 @@ private:
    QStringList m_cmd_history;
    int m_cmd_last;
    QTreeWidgetItem *m_firstItem;
+   QTreeWidgetItem *m_waitTreeItem;
    bool m_isClosing;
 };