Gui: [skip ci] fix ColorButton to pre-select current color in dialog

This commit is contained in:
wmayer
2020-03-16 09:46:09 +01:00
parent e83dd0121c
commit 52bee70c6d

View File

@@ -772,6 +772,7 @@ void ColorButton::onChooseColor()
this, SLOT(onColorChosen(const QColor&)));
}
cd.setCurrentColor(currentColor);
if (cd.exec() == QDialog::Accepted) {
QColor c = cd.selectedColor();
if (c.isValid()) {