diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-08-02 23:10:31 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-08-02 23:10:31 +0200 |
commit | 6ee5d9c0cd65883c705394bd2047ae8c582b0c30 (patch) | |
tree | cf1f7cef1a2bc54b061deca93f07f82301525c88 | |
parent | Add '/' (slash) shortcut to launch search bar (diff) | |
download | rekonq-6ee5d9c0cd65883c705394bd2047ae8c582b0c30.tar.xz |
Load an empty session if no saved one is found
BUG: 322981
-rw-r--r-- | src/sessionwidget.cpp | 5 |
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); } |