+ use right iterator variable

This commit is contained in:
wmayer 2015-05-08 12:40:57 +02:00
parent 2dd871389e
commit 72a0c490ac

View File

@ -549,9 +549,9 @@ void WorkbenchGroup::refreshWorkbenchList()
// if less workbenches than actions
for (int index = numWorkbenches; index < workbenches.count(); index++) {
workbenches[i]->setObjectName(QString());
workbenches[i]->setIcon(QIcon());
workbenches[i]->setText(QString());
workbenches[index]->setObjectName(QString());
workbenches[index]->setIcon(QIcon());
workbenches[index]->setText(QString());
workbenches[index]->setVisible(false);
}
}