Gui: use contains() and isEmpty() instead of count() where possible
This commit is contained in:
@@ -1096,7 +1096,7 @@ void Model::contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
|
||||
contextMenu.addAction(editingFinishedAction);
|
||||
}
|
||||
|
||||
if (contextMenu.actions().count() > 0)
|
||||
if (!contextMenu.actions().isEmpty())
|
||||
contextMenu.exec(event->screenPos());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user