Gui: [skip ci] Fix Qt warning 'Unable to set geometry ...'

This commit is contained in:
wmayer
2020-12-09 16:22:14 +01:00
parent f54c755dc0
commit 564610211c

View File

@@ -774,6 +774,7 @@ void ColorButton::onChooseColor()
}
cd.setCurrentColor(currentColor);
cd.adjustSize();
if (cd.exec() == QDialog::Accepted) {
QColor c = cd.selectedColor();
if (c.isValid()) {