From 27e3187270807c5e126a2e4bf66211de0f784a28 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 18 May 2011 17:14:34 +0000 Subject: 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 --- src/gui/ConnectWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') 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(); } -- cgit v1.2.1