summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-18 17:14:34 +0000
committerDavid Robillard <d@drobilla.net>2011-05-18 17:14:34 +0000
commit27e3187270807c5e126a2e4bf66211de0f784a28 (patch)
treeb4fbd993fddd7dfdc07ccaa3d1384e6141a3ae06
parenta9a8c78b96da29e72dea004af679a726655a1b36 (diff)
downloadingen-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
-rw-r--r--src/gui/ConnectWindow.cpp2
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();
}