Commit 4a5f62fe authored by Stefan Brüns's avatar Stefan Brüns

[KRunner] Move trivial check in addToHistory to the front

Summary: No functional change.

Test Plan: compiles, runs

Reviewers: #plasma, broulik, apol

Reviewed By: #plasma, broulik

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D20382
parent 65367689
......@@ -361,12 +361,12 @@ void View::addToHistory(const QString &item)
return;
}
if (!KAuthorized::authorize(QStringLiteral("lineedit_text_completion"))) {
// Mimic shell behavior of not storing lines starting with a space
if (item.at(0).isSpace()) {
return;
}
// Mimic shell behavior of not storing lines starting with a space
if (item.at(0).isSpace()) {
if (!KAuthorized::authorize(QStringLiteral("lineedit_text_completion"))) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment