From 6ee5d9c0cd65883c705394bd2047ae8c582b0c30 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 2 Aug 2013 23:10:31 +0200 Subject: Load an empty session if no saved one is found BUG: 322981 --- src/sessionwidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); } -- cgit v1.2.1