summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}