backported 948747 - ignore leading/following whitespaces
CCBUG: 188665 svn path=/branches/KDE/4.2/kdelibs/; revision=948748
This commit is contained in:
parent
988c51290b
commit
676ae0970b
@ -481,8 +481,10 @@ void RunnerManager::launchQuery(const QString &term)
|
||||
launchQuery(term, QString());
|
||||
}
|
||||
|
||||
void RunnerManager::launchQuery(const QString &term, const QString &runnerName)
|
||||
void RunnerManager::launchQuery(const QString &untrimmedTerm, const QString &runnerName)
|
||||
{
|
||||
QString term = untrimmedTerm.trimmed();
|
||||
|
||||
if (d->runners.isEmpty()) {
|
||||
d->loadRunners();
|
||||
}
|
||||
@ -529,8 +531,10 @@ bool RunnerManager::execQuery(const QString &term)
|
||||
return execQuery(term, QString());
|
||||
}
|
||||
|
||||
bool RunnerManager::execQuery(const QString &term, const QString &runnerName)
|
||||
bool RunnerManager::execQuery(const QString &untrimmedTerm, const QString &runnerName)
|
||||
{
|
||||
QString term = untrimmedTerm.trimmed();
|
||||
|
||||
if (d->runners.isEmpty()) {
|
||||
d->loadRunners();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user