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:12:34 +0100 |
commit | 12e20923d870fd9884ee9c02bedbbd1989f22a44 (patch) | |
tree | f3c231db35f67689a5922f988564642dc418ff79 /src/mainview.cpp | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-12e20923d870fd9884ee9c02bedbbd1989f22a44.tar.xz |
Properly handle window/app close
(cherry-picked from master)
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 15c78f5a..bb4dc5d1 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; } |