Search: Fix false positive rename warning

Change-Id: Ic483d2ef05112463bc80d96ac4adf858b5f158fd
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Orgad Shaneh
2013-01-13 17:09:00 +02:00
committed by hjk
parent 44e61c82de
commit 14e4c19c2c

View File

@@ -230,14 +230,13 @@ void SearchResultWidget::addResults(const QList<SearchResultItem> &items, Search
m_searchResultTreeView->addResults(items, mode);
updateMatchesFoundLabel();
if (firstItems) {
QByteArray undoWarningIdName(UNDO_WARNING_ID);
if (!m_dontAskAgainGroup.isEmpty())
undoWarningIdName.append('/' + m_dontAskAgainGroup.toLatin1());
Core::Id undoWarningId(undoWarningIdName);
if (m_infoBar.canInfoBeAdded(undoWarningId)) {
Core::InfoBarEntry info(undoWarningId, tr("This change cannot be undone."),
Core::InfoBarEntry::GlobalSuppressionEnabled);
m_infoBar.addInfo(info);
if (!m_dontAskAgainGroup.isEmpty()) {
Core::Id undoWarningId(QByteArray(UNDO_WARNING_ID) + '/' + m_dontAskAgainGroup.toLatin1());
if (m_infoBar.canInfoBeAdded(undoWarningId)) {
Core::InfoBarEntry info(undoWarningId, tr("This change cannot be undone."),
Core::InfoBarEntry::GlobalSuppressionEnabled);
m_infoBar.addInfo(info);
}
}
m_replaceTextEdit->setEnabled(true);