diff options
author | David Robillard <d@drobilla.net> | 2011-05-18 17:14:34 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-18 17:14:34 +0000 |
commit | 27e3187270807c5e126a2e4bf66211de0f784a28 (patch) | |
tree | b4fbd993fddd7dfdc07ccaa3d1384e6141a3ae06 /src | |
parent | a9a8c78b96da29e72dea004af679a726655a1b36 (diff) | |
download | ingen-27e3187270807c5e126a2e4bf66211de0f784a28.tar.gz ingen-27e3187270807c5e126a2e4bf66211de0f784a28.tar.bz2 ingen-27e3187270807c5e126a2e4bf66211de0f784a28.zip |
Exit when connect window is closed and there are no open patch windows.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3281 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/ConnectWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp index 84d67797..c07eef71 100644 --- a/src/gui/ConnectWindow.cpp +++ b/src/gui/ConnectWindow.cpp @@ -351,7 +351,7 @@ void ConnectWindow::on_hide() { Gtk::Dialog::on_hide(); - if (!_attached) + if (App::instance().window_factory()->num_open_patch_windows() == 0) quit(); } |