From 7b337b4de897280faed561d4ef01fb6e3f278373 Mon Sep 17 00:00:00 2001 From: nowrep Date: Sun, 8 Jan 2012 10:56:50 +0100 Subject: [PATCH] [Fix] Fixed loss of speed dial settings. Closes #137 - it occured only when you don't open speed dial page in your browser session --- src/plugins/speeddial.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/speeddial.cpp b/src/plugins/speeddial.cpp index f23e537d4..a499b78e6 100644 --- a/src/plugins/speeddial.cpp +++ b/src/plugins/speeddial.cpp @@ -53,6 +53,10 @@ void SpeedDial::loadSettings() void SpeedDial::saveSettings() { + if (m_allPages.isEmpty()) { + return; + } + QSettings settings(mApp->getActiveProfilPath() + "settings.ini", QSettings::IniFormat); settings.beginGroup("SpeedDial"); settings.setValue("pages", m_allPages);