From 770c074cfc9813547621cf0ff025194c03bd1afb Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Sun, 8 Apr 2007 17:28:10 +0000 Subject: [PATCH] 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 --- bacula/src/qt-console/mainwin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() -- 2.39.5