diff -r dbc8bb2a4d84 -r b692088dc1a6 src/dialogs/subfilereferenceeditor.cpp --- a/src/dialogs/subfilereferenceeditor.cpp Sun Mar 18 12:33:29 2018 +0200 +++ b/src/dialogs/subfilereferenceeditor.cpp Sun Mar 18 12:37:40 2018 +0200 @@ -13,10 +13,10 @@ this->ui.setupUi(this); this->ui.referenceName->setText(reference->referenceName()); this->color = reference->color(); + ::setColorButton(this->ui.colorButton, this->color); this->ui.positionX->setValue(reference->position().x()); this->ui.positionY->setValue(reference->position().y()); this->ui.positionZ->setValue(reference->position().z()); - connect( this->ui.colorButton, &QPushButton::clicked, @@ -26,7 +26,6 @@ ::setColorButton(this->ui.colorButton, this->color); } ); - for (int i : {0, 1, 2}) for (int j : {0, 1, 2}) {