mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-23 09:06:45 -05:00
Ignore empty deletes for custom attributes
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user