diff options
Diffstat (limited to 'src/gui/GraphWindow.cpp')
-rw-r--r-- | src/gui/GraphWindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/GraphWindow.cpp b/src/gui/GraphWindow.cpp index 0767f76d..99861534 100644 --- a/src/gui/GraphWindow.cpp +++ b/src/gui/GraphWindow.cpp @@ -70,6 +70,10 @@ GraphWindow::on_hide() { _position_stored = true; get_position(_x, _y); + if (_app->window_factory()->num_open_graph_windows() == 1 && + _app->quit(this)) { + return; + } Gtk::Window::on_hide(); } |