From 641ed4dbb6d9b2b1d7dcb63d56c9d367c6208b66 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Tue, 3 Feb 2015 18:54:41 +0100 Subject: [PATCH] build fix --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index be233d9..7ae3c64 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -49,7 +49,7 @@ int main(int argc, char *argv[]) SnoreCore core; core.loadPlugins(SnorePlugin::BACKEND | SnorePlugin::SECONDARY_BACKEND); - if (parser.isSet(backend) ? !core.setPrimaryNotificationBackend(parser.value(backend)) : !core.setPrimaryNotificationBackend()) { + if (parser.isSet(backend) && !core.setPrimaryNotificationBackend(parser.value(backend))) { std::cerr << "Failed to set backend: " << qPrintable(parser.value(backend)) << " avalible backends: " << qPrintable(core.pluginNames(SnorePlugin::BACKEND).join(", ")) << std::endl; return 1; }