Ignore empty deletes for custom attributes
This commit is contained in:
parent
0e039e0769
commit
69c1ae678d
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue