forked from qt-creator/qt-creator
Use isEmpty() instead of count() or size()
Change-Id: I0a89d2808c6d041da0dc41ea5aea58e6e8759bb4 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -702,7 +702,7 @@ void BookmarkManager::itemChanged(QStandardItem *item)
|
||||
if (item->text() != oldText) {
|
||||
if (item->data(Qt::UserRole + 10).toString() != QLatin1String("Folder")) {
|
||||
QList<QStandardItem*>itemList = listModel->findItems(oldText);
|
||||
if (itemList.count() > 0)
|
||||
if (!itemList.isEmpty())
|
||||
itemList.at(0)->setText(item->text());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user