Ignore empty deletes for custom attributes

This commit is contained in:
GriffinR 2022-10-24 23:01:26 -04:00
parent 0e039e0769
commit 69c1ae678d

View file

@ -195,6 +195,9 @@ bool CustomAttributesTable::deleteSelectedAttributes(QTableWidget * table) {
persistentIndexes.append(persistentIndex);
}
if (persistentIndexes.isEmpty())
return false;
for (QPersistentModelIndex index : persistentIndexes) {
table->removeRow(index.row());
}