summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2015-08-03 10:58:30 (GMT)
committerMarco Martin <notmart@gmail.com>2015-08-03 13:30:05 (GMT)
commitd5bad89a51e0f957e3f6bc0764038ce4dec68e05 (patch)
tree03f0122bde94aaa0f2a9f2898c8ca795c55d7793
parent25335614180db72ab62c58c056bcc36043c20039 (diff)
Fix crash on startup when okularpart can't be found
-rw-r--r--shell/shell.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/shell.cpp b/shell/shell.cpp
index 6bf690d..d0204f9 100644
--- a/shell/shell.cpp
+++ b/shell/shell.cpp
@@ -319,6 +319,9 @@ void Shell::setupActions()
void Shell::saveProperties(KConfigGroup &group)
{
+ if ( !m_isValid ) // part couldn't be loaded, nothing to save
+ return;
+
// Gather lists of settings to preserve
QStringList urls;
for( int i = 0; i < m_tabs.size(); ++i )