Gui: use contains() and isEmpty() instead of count() where possible

This commit is contained in:
Benjamin Nauck
2025-03-10 21:39:54 +01:00
parent 65ee1339de
commit a882289995
16 changed files with 39 additions and 39 deletions

View File

@@ -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());
}