forked from qt-creator/qt-creator
Search: Fix false positive rename warning
Change-Id: Ic483d2ef05112463bc80d96ac4adf858b5f158fd Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -230,15 +230,14 @@ void SearchResultWidget::addResults(const QList<SearchResultItem> &items, Search
|
|||||||
m_searchResultTreeView->addResults(items, mode);
|
m_searchResultTreeView->addResults(items, mode);
|
||||||
updateMatchesFoundLabel();
|
updateMatchesFoundLabel();
|
||||||
if (firstItems) {
|
if (firstItems) {
|
||||||
QByteArray undoWarningIdName(UNDO_WARNING_ID);
|
if (!m_dontAskAgainGroup.isEmpty()) {
|
||||||
if (!m_dontAskAgainGroup.isEmpty())
|
Core::Id undoWarningId(QByteArray(UNDO_WARNING_ID) + '/' + m_dontAskAgainGroup.toLatin1());
|
||||||
undoWarningIdName.append('/' + m_dontAskAgainGroup.toLatin1());
|
|
||||||
Core::Id undoWarningId(undoWarningIdName);
|
|
||||||
if (m_infoBar.canInfoBeAdded(undoWarningId)) {
|
if (m_infoBar.canInfoBeAdded(undoWarningId)) {
|
||||||
Core::InfoBarEntry info(undoWarningId, tr("This change cannot be undone."),
|
Core::InfoBarEntry info(undoWarningId, tr("This change cannot be undone."),
|
||||||
Core::InfoBarEntry::GlobalSuppressionEnabled);
|
Core::InfoBarEntry::GlobalSuppressionEnabled);
|
||||||
m_infoBar.addInfo(info);
|
m_infoBar.addInfo(info);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_replaceTextEdit->setEnabled(true);
|
m_replaceTextEdit->setEnabled(true);
|
||||||
// We didn't have an item before, set the focus to the search widget or replace text edit
|
// We didn't have an item before, set the focus to the search widget or replace text edit
|
||||||
|
Reference in New Issue
Block a user