From 702a68307a5061db6e0fa9dfe07b58c226c4a790 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Tue, 20 Jun 2017 16:17:35 -0400 Subject: [PATCH] Allow multiple instances when debugging (#651) --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 4368f7d54..7c4402b99 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);