diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp index d29324c4..6fd5e3c5 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -470,6 +470,13 @@ MainWindow *Application::newMainWindow(bool withTab) void Application::removeMainWindow(MainWindow *window) { m_mainWindows.removeOne(window); + + // QApplication should quit as soon we have no mainwindow + // But QtWebkit seems to create windows without Qt::WA_QuitOnClose attribute, + // making rekonq keep running after last window is closed + if ( m_mainWindows.length() == 0 ) + QCoreApplication::quit (); + } |