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

# Conflicts:
#	src/Mod/Material/App/ModelLibrary.cpp
This commit is contained in:
Benjamin Nauck
2025-03-12 15:59:55 +01:00
parent 015cf36c38
commit 51f73c05c0
4 changed files with 7 additions and 7 deletions

View File

@@ -404,7 +404,7 @@ void MaterialSave::onSelectModel(const QItemSelection& selected, const QItemSele
_filename = QString(ui->editFilename->text()); // No filename by default
auto model = static_cast<QStandardItemModel*>(ui->treeMaterials->model());
QModelIndexList indexes = selected.indexes();
if (indexes.count() == 0) {
if (indexes.isEmpty()) {
_selectedPath = QStringLiteral("/") + _libraryName;
_selectedFull = _selectedPath;
_selectedUUID = QString();