SAMPLE build for testing.
This commit is contained in:
parent
72337653c6
commit
3671ab7b35
1 changed files with 30 additions and 23 deletions
|
@ -357,18 +357,24 @@ void Application::onSaveState(QSessionManager& manager) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::onAboutToQuit() {
|
void Application::onAboutToQuit() {
|
||||||
|
/*
|
||||||
|
|
||||||
eliminateFirstRun();
|
eliminateFirstRun();
|
||||||
eliminateFirstRun(APP_VERSION);
|
eliminateFirstRun(APP_VERSION);
|
||||||
#if defined(USE_WEBENGINE)
|
|
||||||
|
#if defined(USE_WEBENGINE)
|
||||||
AdBlockManager::instance()->save();
|
AdBlockManager::instance()->save();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Make sure that we obtain close lock BEFORE even trying to quit the application.
|
// Make sure that we obtain close lock BEFORE even trying to quit the application.
|
||||||
const bool locked_safely = feedUpdateLock()->tryLock(4 * CLOSE_LOCK_TIMEOUT);
|
const bool locked_safely = feedUpdateLock()->tryLock(4 * CLOSE_LOCK_TIMEOUT);
|
||||||
processEvents();
|
processEvents();
|
||||||
qDebug("Cleaning up resources and saving application state.");
|
qDebug("Cleaning up resources and saving application state.");
|
||||||
#if defined(Q_OS_WIN)
|
|
||||||
|
#if defined(Q_OS_WIN)
|
||||||
system()->removeTrolltechJunkRegistryKeys();
|
system()->removeTrolltechJunkRegistryKeys();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
qApp->feedReader()->quit();
|
qApp->feedReader()->quit();
|
||||||
database()->saveDatabase();
|
database()->saveDatabase();
|
||||||
|
|
||||||
|
@ -402,6 +408,7 @@ void Application::onAboutToQuit() {
|
||||||
qWarning("New application instance was not started successfully.");
|
qWarning("New application instance was not started successfully.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::restart() {
|
void Application::restart() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue