Commit 058affb7 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Ignore --mode when we have a specific query requested already

Otherwise we override it
parent fc42d347
......@@ -68,8 +68,7 @@ void processArgs(QCommandLineParser* parser, DiscoverObject* mainWindow)
mainWindow->openMimeType(parser->value(QStringLiteral("mime")));
else if(parser->isSet(QStringLiteral("category")))
mainWindow->openCategory(parser->value(QStringLiteral("category")));
if(parser->isSet(QStringLiteral("mode")))
else if(parser->isSet(QStringLiteral("mode")))
mainWindow->openMode(parser->value(QStringLiteral("mode")));
else
mainWindow->openMode(QStringLiteral("Browsing"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment