Approach to fix "Q_ASSERT(found != end1);" assert as reported by RP

https://swift-project.slack.com/archives/G96QTUBEG/p1546880962000700
This commit is contained in:
Klaus Basan
2019-01-08 08:09:40 +01:00
committed by Mat Sutcliffe
parent ed2acf4d74
commit 33a3984588
2 changed files with 9 additions and 4 deletions

View File

@@ -327,7 +327,7 @@ namespace BlackGui
if (this->isEmpty()) { return 0; }
const int currentRows = this->rowCount();
const ContainerType selected(selectedObjects());
const ContainerType selected(this->selectedObjects());
const CVariant deletedObjsVariant = CVariant::from(selected);
int delta = 0;
@@ -339,7 +339,7 @@ namespace BlackGui
}
else
{
ContainerType unselectedObjects(container());
ContainerType unselectedObjects(this->container());
unselectedObjects.removeIfInSubset(selected);
this->updateContainerMaybeAsync(unselectedObjects);
delta = currentRows - unselectedObjects.size();