Partially fixed #33.
This commit is contained in:
parent
93f603384d
commit
fbcd580210
@ -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
|
||||
|
@ -62,7 +62,9 @@ public:
|
||||
|
||||
// Unlocks the file.
|
||||
bool unlock() {
|
||||
return lockFile.unlock();
|
||||
bool unlocked = lockFile.unlock();
|
||||
lockFile.remove();
|
||||
return unlocked;
|
||||
}
|
||||
|
||||
Q_SIGNALS:
|
||||
|
Loading…
x
Reference in New Issue
Block a user