Skip to content

Commit

Permalink
+ Improve performance when deselecting all edges of an edited fillet …
Browse files Browse the repository at this point in the history
…feature
  • Loading branch information
wwmayer committed Apr 24, 2014
1 parent d8dba90 commit 573c1ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mod/Part/Gui/DlgFilletEdges.cpp
Expand Up @@ -678,11 +678,16 @@ void DlgFilletEdges::on_selectAllButton_clicked()
void DlgFilletEdges::on_selectNoneButton_clicked()
{
QAbstractItemModel* model = ui->treeView->model();
bool block = model->blockSignals(true); // do not call toggleCheckState
for (int i=0; i<model->rowCount(); ++i) {
Qt::CheckState checkState = Qt::Unchecked;
QVariant value(static_cast<int>(checkState));
model->setData(model->index(i,0), value, Qt::CheckStateRole);
}
model->blockSignals(block);

App::Document* doc = d->object->getDocument();
Gui::Selection().clearSelection(doc->getName());
}

void DlgFilletEdges::on_filletType_activated(int index)
Expand Down

0 comments on commit 573c1ab

Please sign in to comment.