mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:17:02 +08:00
Don't remove rows if there are no rows
This fixes an assert added in Qt 5.11.
This commit is contained in:
committed by
Klaus Basan
parent
87bb9e28cd
commit
84bb363990
@@ -166,7 +166,9 @@ namespace BlackGui
|
||||
}
|
||||
else
|
||||
{
|
||||
beginRemoveRows(QModelIndex(), 0, 0);
|
||||
QModelIndex parent;
|
||||
if (rowCount(parent) == 0) { return; }
|
||||
beginRemoveRows(parent, 0, 0);
|
||||
this->removeIf(&CAtcStation::getCallsign, station.getCallsign());
|
||||
endRemoveRows();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user