mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-24 06:48:08 -05:00
Ignore empty deletes for custom attributes
This commit is contained in:
parent
0e039e0769
commit
69c1ae678d
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user