Partially fixed #33.

This commit is contained in:
Martin Rotter 2014-03-11 07:41:23 +01:00
parent 93f603384d
commit fbcd580210
2 changed files with 4 additions and 1 deletions

View File

@ -248,6 +248,7 @@ void FormMain::onAboutToQuit() {
// We locked the lock to exit peacefully, unlock it to avoid warnings.
SystemFactory::instance()->applicationCloseLock()->unlock();
QtSingleApplication::instance()->unlock();
}
else {
// Request for write lock timed-out. This means

View File

@ -62,7 +62,9 @@ public:
// Unlocks the file.
bool unlock() {
return lockFile.unlock();
bool unlocked = lockFile.unlock();
lockFile.remove();
return unlocked;
}
Q_SIGNALS: