mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
Merge branch 'Falkon/3.0'
This commit is contained in:
commit
8034ace416
@ -18,12 +18,14 @@
|
||||
#include "autosaver.h"
|
||||
|
||||
#include <QTimerEvent>
|
||||
#include <QCoreApplication>
|
||||
|
||||
#define SAVE_DELAY 1000 * 10 // 10 seconds
|
||||
|
||||
AutoSaver::AutoSaver(QObject* parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
connect(qApp, &QCoreApplication::aboutToQuit, this, &AutoSaver::saveIfNecessary);
|
||||
}
|
||||
|
||||
void AutoSaver::saveIfNecessary()
|
||||
|
@ -76,10 +76,6 @@ void SpeedDial::saveSettings()
|
||||
{
|
||||
ENSURE_LOADED;
|
||||
|
||||
if (m_pages.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Settings settings;
|
||||
settings.beginGroup("SpeedDial");
|
||||
settings.setValue("pages", generateAllPages());
|
||||
|
Loading…
Reference in New Issue
Block a user