build fix

This commit is contained in:
Patrick von Reth 2015-02-03 18:54:41 +01:00
parent c966c0b12e
commit 641ed4dbb6
1 changed files with 1 additions and 1 deletions

View File

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