SAMPLE build for testing.

This commit is contained in:
Martin Rotter 2017-09-14 08:45:58 +02:00
parent 72337653c6
commit 3671ab7b35

View file

@ -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() {