diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-07-08 09:49:43 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-07-08 10:02:56 +0200 |
commit | 79b0bac01d82f8fa5f67bf288eab1ca8433fac8b (patch) | |
tree | 321b121692db54d08db49cf965978e1770e302ac /src/application.cpp | |
parent | Update screenshots. (diff) | |
download | rekonq-79b0bac01d82f8fa5f67bf288eab1ca8433fac8b.tar.xz |
Ensure rekonq will close when deleting last window.
BUG: 303149
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp index 9fa0e322..efbfd60a 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -516,6 +516,10 @@ void Application::removeMainWindow(MainWindow *window) { m_mainWindows.removeOne(window); kDebug() << "Removing Window from app window list..."; + + // bye bye... + if (m_mainWindows.count() == 0) + quit(); } |