diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-11-24 16:08:52 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-11-24 16:08:52 +0100 |
commit | 624f44cf8228b12a4c7ae6f8dd36b800a4f03739 (patch) | |
tree | 2d3a6e73f56ef44e23a0d1fa5012e241f2f768dd /src/mainview.cpp | |
parent | rekonq 0.8.53 (diff) | |
download | rekonq-624f44cf8228b12a4c7ae6f8dd36b800a4f03739.tar.xz |
Properly handle window/app close
BUG: 286831
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 1ad452ea..fb6a1d78 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -422,9 +422,10 @@ void MainView::closeTab(int index, bool del) { if (ReKonfig::lastTabClosesWindow()) { - // closing window... - MainWindow *w = qobject_cast<MainWindow *>(parent()); - w->close(); + emit closeWindow(); +// // closing window... +// MainWindow *w = qobject_cast<MainWindow *>(parent()); +// w->close(); return; } |