Removed some stuff.

This commit is contained in:
Martin Rotter 2014-01-12 19:46:20 +01:00
parent 50cb0ba105
commit 691cee9e15
2 changed files with 6 additions and 8 deletions

View File

@ -169,20 +169,18 @@ void FormMain::display() {
}
void FormMain::onCommitData(QSessionManager &manager) {
QFile("/home/martin/Dokumenty/aaa").open(QIODevice::ReadWrite);
qDebug("OS asked application to commit its data.");
manager.release();
}
void FormMain::onSaveState(QSessionManager &manager) {
QFile("/home/martin/Dokumenty/ccc").open(QIODevice::ReadWrite);
qDebug("OS asked application to save its state.");
manager.release();
}
void FormMain::onAboutToQuit() {
QFile("/home/martin/Dokumenty/bbb").open(QIODevice::ReadWrite);
// Make sure that we obtain close lock
// BEFORE even trying to quit the application.
if (SystemFactory::getInstance()->applicationCloseLock()->tryLockForWrite(CLOSE_LOCK_TIMEOUT)) {