summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-07-29 22:25:50 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-07-29 22:25:50 +0200
commitc7615728ccefc23368b5d25d8bc5f6eeafcceb84 (patch)
treea4b5c8a2ccd7171cda890cb6e65a4d178da5c67d
parent64b2fb0a180f57a8debc8755cebe76f0ded1fdab (diff)
Only ask at exit if there are any packages
-rw-r--r--src/monitor-gui.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/monitor-gui.cc b/src/monitor-gui.cc
index 1c3bb3f..a3932b6 100644
--- a/src/monitor-gui.cc
+++ b/src/monitor-gui.cc
@@ -899,7 +899,9 @@ public:
// GuiMain::Listener
bool about_to_exit(GuiMain* main) override {
assert(main_.get() == main);
- if (abort_if_modified()) return false;
+ if (packages_->rows() > 0) {
+ if (abort_if_modified()) return false;
+ }
return true;
}