From b1b397b450296c2eab52eab9e823643edf149348 Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Fri, 27 Mar 2009 14:57:16 +0000 Subject: [PATCH] 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 --- bacula/src/qt-console/mainwin.cpp | 3 +++ bacula/src/qt-console/mainwin.h | 1 + 2 files changed, 4 insertions(+) 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; }; -- 2.39.5