Commit 2a97605b authored by Martin Aumüller's avatar Martin Aumüller Committed by hjk
Browse files

fakevim: ':set noic'/':set ic' was inverted



QAction::trigger toggles the action, thus set inverse state before triggering

Merge-request: 190
Reviewed-by: default avatarhjk <qtc-committer@nokia.com>
parent c12c9635
......@@ -734,7 +734,7 @@ void FakeVimPluginPrivate::setActionChecked(const QString &code, bool check)
QAction *action = cmd->action();
QTC_ASSERT(action, return);
QTC_ASSERT(action->isCheckable(), return);
action->setChecked(check);
action->setChecked(!check); // trigger negates the action's state
action->trigger();
}
......@@ -1003,7 +1003,7 @@ void FakeVimPluginPrivate::handleExCommand(bool *handled, const ExCommand &cmd)
// :se[t]
showSettingsDialog();
} else if (cmd.args == "ic" || cmd.args == "ignorecase") {
// :set noic
// :set nc
setActionChecked(Find::Constants::CASE_SENSITIVE, false);
} else if (cmd.args == "noic" || cmd.args == "noignorecase") {
// :set noic
......
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