forked from qt-creator/qt-creator
Merge "Merge remote-tracking branch 'origin/13.0'"
This commit is contained in:
@@ -49,11 +49,7 @@ private:
|
||||
return MesonToolKitAspect::mesonToolId(m_kit);
|
||||
return NinjaToolKitAspect::ninjaToolId(m_kit);
|
||||
}();
|
||||
if (id.isValid())
|
||||
m_toolsComboBox->setCurrentIndex(indexOf(id));
|
||||
else {
|
||||
setToDefault();
|
||||
}
|
||||
m_toolsComboBox->setCurrentIndex(indexOf(id));
|
||||
}
|
||||
|
||||
QComboBox *m_toolsComboBox;
|
||||
|
@@ -1020,6 +1020,8 @@ void TextEditorWidgetFind::selectAll(const QString &txt, FindFlags findFlags)
|
||||
if (future.resultCount() <= 0)
|
||||
return;
|
||||
const SearchResultItems &results = future.result();
|
||||
if (results.isEmpty())
|
||||
return;
|
||||
const auto cursorForResult = [this](const SearchResultItem &item) {
|
||||
return selectRange(m_editor->document(), item.mainRange());
|
||||
};
|
||||
|
Reference in New Issue
Block a user