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.
This commit is contained in:
Gianluca Recchia 2018-10-27 15:58:50 +02:00
parent 7a823e8dc7
commit e2ee82169c
No known key found for this signature in database
GPG Key ID: 3C2B4128D9A1F218

View File

@ -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);
}