Commit 6d65de24 authored by Andrey M. Tokarev's avatar Andrey M. Tokarev Committed by Nikolai Kosjar
Browse files

CppEditor: small fixes

It's better to initialize m_isSortingAllowed by true
in both constructors (patch to commit where
m_isSortingAllowed appears)

Change-Id: I3d04d4dcd5afdd45a7bc7e05b2de6799d3f5c82d
Reviewed-by: default avatarNikolai Kosjar <>
parent cd581ecd
......@@ -1111,7 +1111,7 @@ void BaseTextEditorWidget::moveLineUpDown(bool up)
bool hasSelection = cursor.hasSelection();
if (cursor.hasSelection()) {
if (hasSelection) {
move.setPosition(cursor.selectionEnd(), QTextCursor::KeepAnchor);
......@@ -118,7 +118,7 @@ struct ContentLessThan
} // Anonymous
: m_isSortingAllowed(false)
: m_isSortingAllowed(true)
BasicProposalItemListModel::BasicProposalItemListModel(const QList<BasicProposalItem *> &items)
Supports Markdown
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