diff options
Diffstat (limited to 'src/tabwindow/tabwidget.cpp')
-rw-r--r-- | src/tabwindow/tabwidget.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tabwindow/tabwidget.cpp b/src/tabwindow/tabwidget.cpp index 322c45e1..bdc7a47a 100644 --- a/src/tabwindow/tabwidget.cpp +++ b/src/tabwindow/tabwidget.cpp @@ -621,7 +621,12 @@ void TabWidget::closeTab(int index, bool del) // what to do if there is just one tab... if (count() == 1) { - kDebug() << "CANNOT CLOSE WINDOW FROM HERE..."; + if (ReKonfig::lastTabClosesWindow()) + { + emit closeWindow(); + return; + } + currentWebWindow()->load(KUrl("about:home")); return; } |