From e2ee82169c3b2edc75bb424e7ab3d292411cd67e Mon Sep 17 00:00:00 2001 From: Gianluca Recchia Date: Sat, 27 Oct 2018 15:58:50 +0200 Subject: [PATCH] Remove redundant check for the version flag Just a couple lines above, the application would already exit if the version option is set. This extra check is not needed. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 0b5e0b1cb..9764c52d1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -88,7 +88,7 @@ int main(int argc, char** argv) const QStringList fileNames = parser.positionalArguments(); - if (app.isAlreadyRunning() && !parser.isSet(versionOption)) { + if (app.isAlreadyRunning()) { if (!fileNames.isEmpty()) { app.sendFileNamesToRunningInstance(fileNames); }