mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-03 12:06:25 -04:00
Allow multiple instances when debugging (#651)
This commit is contained in:
parent
344235b1e1
commit
702a68307a
1 changed files with 2 additions and 0 deletions
|
@ -57,10 +57,12 @@ int main(int argc, char** argv)
|
|||
// don't set organizationName as that changes the return value of
|
||||
// QStandardPaths::writableLocation(QDesktopServices::DataLocation)
|
||||
|
||||
#ifndef QT_DEBUG
|
||||
if (app.isAlreadyRunning()) {
|
||||
qWarning() << QCoreApplication::translate("Main", "Another instance of KeePassXC is already running.").toUtf8().constData();
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
QApplication::setQuitOnLastWindowClosed(false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue