summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-11-24 16:08:52 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-11-24 16:12:34 +0100
commit12e20923d870fd9884ee9c02bedbbd1989f22a44 (patch)
treef3c231db35f67689a5922f988564642dc418ff79 /src/mainview.cpp
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-12e20923d870fd9884ee9c02bedbbd1989f22a44.tar.xz
Properly handle window/app close
(cherry-picked from master)
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp7
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;
}