BUG: Make sure editor closes when deleting cache entries.
This commit is contained in:
parent
a8c4244916
commit
11102a377c
|
@ -695,6 +695,7 @@ void CMakeSetupDialog::removeSelectedCacheEntries()
|
||||||
{
|
{
|
||||||
pidxs.append(i);
|
pidxs.append(i);
|
||||||
}
|
}
|
||||||
|
this->CacheValues->selectionModel()->clear();
|
||||||
foreach(QPersistentModelIndex pi, pidxs)
|
foreach(QPersistentModelIndex pi, pidxs)
|
||||||
{
|
{
|
||||||
this->CacheValues->model()->removeRow(pi.row());
|
this->CacheValues->model()->removeRow(pi.row());
|
||||||
|
|
Loading…
Reference in New Issue