if launchquery gets called without runner id and singlerunner was enabled, switch the manager to all runners again

svn path=/trunk/KDE/kdelibs/; revision=1061990
This commit is contained in:
Marco Martin 2009-12-13 13:49:22 +00:00
parent 77928c0141
commit f8b4367934

View File

@ -582,10 +582,8 @@ void RunnerManager::launchQuery(const QString &untrimmedTerm, const QString &run
setupMatchSession();
QString term = untrimmedTerm.trimmed();
if (!runnerName.isEmpty()) {
setSingleModeRunnerId(runnerName);
setSingleMode(true);
}
setSingleModeRunnerId(runnerName);
setSingleMode(!runnerName.isEmpty());
if (term.isEmpty()) {
if (d->singleMode && d->currentSingleRunner && d->currentSingleRunner->defaultSyntax()) {