Spreadsheet: use isEmpty() instead of count() where possible
This commit is contained in:
@@ -851,7 +851,7 @@ void ColorPickerPopup::showEvent(QShowEvent *)
|
||||
}
|
||||
|
||||
if (!foundSelected) {
|
||||
if (items.count() == 0)
|
||||
if (items.isEmpty())
|
||||
setFocus();
|
||||
else
|
||||
widgetAt[0][0]->setFocus();
|
||||
|
||||
Reference in New Issue
Block a user