diff --git a/runnermanager.cpp b/runnermanager.cpp index 0fcf3863a..6c8dbdb2a 100644 --- a/runnermanager.cpp +++ b/runnermanager.cpp @@ -346,11 +346,7 @@ AbstractRunner *RunnerManager::runner(const QString &name) const d->loadRunners(); } - if (d->runners.contains(name)) { - return d->runners.value(name); - } - - return 0; + return d->runners.value(name, 0); } RunnerContext *RunnerManager::searchContext() const