Spreadsheet: use isEmpty() instead of count() where possible

This commit is contained in:
Benjamin Nauck
2025-03-12 16:01:44 +01:00
parent b9ee64792d
commit c70b649dff

View File

@@ -851,7 +851,7 @@ void ColorPickerPopup::showEvent(QShowEvent *)
}
if (!foundSelected) {
if (items.count() == 0)
if (items.isEmpty())
setFocus();
else
widgetAt[0][0]->setFocus();