]> git.sur5r.net Git - bacula/bacula/commitdiff
dhb On close, check all pages to see if it is currently undocked. If it is
authorDirk H Bartley <dbartley@schupan.com>
Sun, 8 Apr 2007 17:28:10 +0000 (17:28 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Sun, 8 Apr 2007 17:28:10 +0000 (17:28 +0000)
     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

index 01a0b0031105990123b03ad88dd8a6db24e4ba39..4f1300095cdf394c45fcf8bbf605f0187af01189 100644 (file)
@@ -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()