summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-14 06:29:17 +0000
committerDavid Robillard <d@drobilla.net>2015-02-14 06:29:17 +0000
commit3b1324bad4a8785992e799306dfaf99f2e715a96 (patch)
tree9a9aa073cee01d3f4bfb09969cd2820b3fd26163 /src/gui/GraphWindow.cpp
parentb869a69723d1aea0f2d3eab260d7a42b79e3b450 (diff)
downloadingen-3b1324bad4a8785992e799306dfaf99f2e715a96.tar.gz
ingen-3b1324bad4a8785992e799306dfaf99f2e715a96.tar.bz2
ingen-3b1324bad4a8785992e799306dfaf99f2e715a96.zip
Confirm quit on last window close.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5562 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/GraphWindow.cpp')
-rw-r--r--src/gui/GraphWindow.cpp4
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();
}