summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}