From 7899dbd98635981c3c6f60b2bfe3167c516283f5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 2 Oct 2016 19:58:08 +0200 Subject: [PATCH] make color dialog in material panel modal but apply color directly to shape --- src/Gui/DlgMaterialPropertiesImp.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Gui/DlgMaterialPropertiesImp.cpp b/src/Gui/DlgMaterialPropertiesImp.cpp index f18fd1103a..0703335e27 100644 --- a/src/Gui/DlgMaterialPropertiesImp.cpp +++ b/src/Gui/DlgMaterialPropertiesImp.cpp @@ -52,10 +52,12 @@ DlgMaterialPropertiesImp::DlgMaterialPropertiesImp(const std::string& mat, QWidg this->diffuseColor->hide(); } - ambientColor->setModal(false); - diffuseColor->setModal(false); - emissiveColor->setModal(false); - specularColor->setModal(false); +//#if !defined(Q_WS_MAC) + ambientColor->setAutoChangeColor(true); + diffuseColor->setAutoChangeColor(true); + emissiveColor->setAutoChangeColor(true); + specularColor->setAutoChangeColor(true); +//#endif } /**