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