Mercurial > trustbridge
comparison ui/mainwindow.cpp @ 690:e4abb41484a0
(issue 27)Only close if no new list is available
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 01 Jul 2014 15:40:30 +0200 |
parents | 6df31cb47d54 |
children | 315103410002 |
comparison
equal
deleted
inserted
replaced
689:6df31cb47d54 | 690:e4abb41484a0 |
---|---|
1132 mUpdatesManual->hide(); | 1132 mUpdatesManual->hide(); |
1133 QSize old = mUpdatesWidget->size(); | 1133 QSize old = mUpdatesWidget->size(); |
1134 mUpdatesWidget->resize(old.width(), old.height() - mUpdatesManual->height()); | 1134 mUpdatesWidget->resize(old.width(), old.height() - mUpdatesManual->height()); |
1135 } | 1135 } |
1136 } | 1136 } |
1137 | |
1138 void MainWindow::closeEvent(QCloseEvent *event) | |
1139 { | |
1140 if (getState() == NewListAvailable) { | |
1141 /* Only minimize to tray if there is a new list */ | |
1142 QMainWindow::closeEvent(event); | |
1143 return; | |
1144 } | |
1145 return closeApp(); | |
1146 } |