summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-08-02 23:10:31 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-08-02 23:10:31 +0200
commit6ee5d9c0cd65883c705394bd2047ae8c582b0c30 (patch)
treecf1f7cef1a2bc54b061deca93f07f82301525c88
parentAdd '/' (slash) shortcut to launch search bar (diff)
downloadrekonq-6ee5d9c0cd65883c705394bd2047ae8c582b0c30.tar.xz
Load an empty session if no saved one is found
BUG: 322981
-rw-r--r--src/sessionwidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sessionwidget.cpp b/src/sessionwidget.cpp
index f708ca11..3f28f62d 100644
--- a/src/sessionwidget.cpp
+++ b/src/sessionwidget.cpp
@@ -76,6 +76,11 @@ SessionWidget::SessionWidget(QWidget *parent)
void SessionWidget::loadSession()
{
int cc = listWidget->currentRow();
+ if (cc < 0)
+ {
+ rApp->loadUrl(KUrl("rekonq:home"));
+ return;
+ }
SessionManager::self()->restoreYourSession(cc);
}