From ba28b64ab630066a3d55ccce016d77a5650ee873 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 3 Aug 2015 12:58:30 +0200 Subject: [PATCH] Fix crash on startup when okularpart can't be found --- shell/shell.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/shell.cpp b/shell/shell.cpp index 73559689b..d80def41c 100644 --- a/shell/shell.cpp +++ b/shell/shell.cpp @@ -326,6 +326,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 )