diff options
author | David Robillard <d@drobilla.net> | 2015-02-14 08:38:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-02-14 08:38:35 +0000 |
commit | eeb89077546d256fdda2e3c3a5c49b7990dc13e9 (patch) | |
tree | 7a031c805eca5c11355d67182d1bb4642126d52d /src/gui/GraphWindow.cpp | |
parent | 1115a7820a7a9dda9d2042c39ad5b7bb10919f86 (diff) | |
download | ingen-eeb89077546d256fdda2e3c3a5c49b7990dc13e9.tar.gz ingen-eeb89077546d256fdda2e3c3a5c49b7990dc13e9.tar.bz2 ingen-eeb89077546d256fdda2e3c3a5c49b7990dc13e9.zip |
Fix quit via window close.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5565 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/GraphWindow.cpp')
-rw-r--r-- | src/gui/GraphWindow.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/GraphWindow.cpp b/src/gui/GraphWindow.cpp index 99861534..dfcdc505 100644 --- a/src/gui/GraphWindow.cpp +++ b/src/gui/GraphWindow.cpp @@ -70,12 +70,15 @@ 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(); } +bool +GraphWindow::on_key_press_event(GdkEventKey* event) +{ + // Disable Window C-w handling so quit works correctly + return Gtk::Window::on_key_press_event(event); +} + } // namespace GUI } // namespace Ingen |