diff options
Diffstat (limited to '3rdparty/QtPropertyBrowser/src/qteditorfactory.cpp')
-rw-r--r-- | 3rdparty/QtPropertyBrowser/src/qteditorfactory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/3rdparty/QtPropertyBrowser/src/qteditorfactory.cpp b/3rdparty/QtPropertyBrowser/src/qteditorfactory.cpp index a2ef86c9..7cd130f3 100644 --- a/3rdparty/QtPropertyBrowser/src/qteditorfactory.cpp +++ b/3rdparty/QtPropertyBrowser/src/qteditorfactory.cpp @@ -2207,9 +2207,9 @@ void QtColorEditWidget::buttonClicked() { bool ok = false; QRgb oldRgba = m_color.rgba(); - QRgb newRgba = QColorDialog::getRgba(oldRgba, &ok, this); - if (ok && newRgba != oldRgba) { - setValue(QColor::fromRgba(newRgba)); + QColor newRgba = QColorDialog::getColor(oldRgba, this).rgba(); + if (newRgba.isValid() && newRgba.rgba() != oldRgba) { + setValue(newRgba); emit valueChanged(m_color); } } |