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