|
@@ -1813,15 +1813,18 @@ bool WidgetInfo::ColorChangedInternal(const char *setting, bool supportAlpha)
|
|
|
options |= QColorDialog::ShowAlphaChannel;
|
|
|
}
|
|
|
|
|
|
- /* The native dialog on OSX has all kinds of problems, like closing
|
|
|
- * other open QDialogs on exit, and
|
|
|
- * https://bugreports.qt-project.org/browse/QTBUG-34532
|
|
|
- */
|
|
|
-#ifndef _WIN32
|
|
|
+#ifdef __linux__
|
|
|
+ // TODO: Revisit hang on Ubuntu with native dialog
|
|
|
options |= QColorDialog::DontUseNativeDialog;
|
|
|
#endif
|
|
|
|
|
|
color = QColorDialog::getColor(color, view, QT_UTF8(desc), options);
|
|
|
+
|
|
|
+#ifdef __APPLE__
|
|
|
+ // TODO: Revisit when QTBUG-42661 is fixed
|
|
|
+ widget->window()->raise();
|
|
|
+#endif
|
|
|
+
|
|
|
if (!color.isValid())
|
|
|
return false;
|
|
|
|