1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

[Fix] Fixed loss of speed dial settings. Closes #137

- it occured only when you don't open speed dial page in your
  browser session
This commit is contained in:
nowrep 2012-01-08 10:56:50 +01:00
parent d9966c08a1
commit 7b337b4de8

View File

@ -53,6 +53,10 @@ void SpeedDial::loadSettings()
void SpeedDial::saveSettings() void SpeedDial::saveSettings()
{ {
if (m_allPages.isEmpty()) {
return;
}
QSettings settings(mApp->getActiveProfilPath() + "settings.ini", QSettings::IniFormat); QSettings settings(mApp->getActiveProfilPath() + "settings.ini", QSettings::IniFormat);
settings.beginGroup("SpeedDial"); settings.beginGroup("SpeedDial");
settings.setValue("pages", m_allPages); settings.setValue("pages", m_allPages);