From: Dirk H Bartley Date: Sun, 8 Apr 2007 17:28:10 +0000 (+0000) Subject: dhb On close, check all pages to see if it is currently undocked. If it is X-Git-Tag: Release-7.0.0~6602 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2ebd739729cc4c9a3fc40fe146a5392008f17016;p=bacula%2Fbacula dhb On close, check all pages to see if it is currently undocked. If it is Then close the window. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4526 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/mainwin.cpp b/bacula/src/qt-console/mainwin.cpp index 01a0b00311..4f1300095c 100644 --- a/bacula/src/qt-console/mainwin.cpp +++ b/bacula/src/qt-console/mainwin.cpp @@ -118,7 +118,7 @@ void MainWin::createPages() m_pagehash.insert(m_pages, medialist); /* Iterate through and add to the stack */ - foreach (Pages *page, m_pagehash) + foreach(Pages *page, m_pagehash) page->dockPage(); treeWidget->expandItem(topItem); @@ -219,6 +219,10 @@ void MainWin::closeEvent(QCloseEvent *event) m_console->writeSettings(); m_console->terminate(); event->accept(); + foreach(Pages *page, m_pagehash){ + if( !page->isDocked() ) + page->close(); + } } void MainWin::writeSettings()