summaryrefslogtreecommitdiffstats
path: root/src/gui/ConnectWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ConnectWindow.cpp')
-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();
}