From 5227fae052f5e5567eddeed37daca8bafc9f0351 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Thu, 30 Jul 2009 11:10:01 +0200 Subject: [PATCH 1/1] Initially display the current color in KColorDialog When clicking on a ColorButton in KDE, we would start with white rather than the button's current color. --- src/uisupport/colorbutton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uisupport/colorbutton.cpp b/src/uisupport/colorbutton.cpp index 15e9de47..c42f1525 100644 --- a/src/uisupport/colorbutton.cpp +++ b/src/uisupport/colorbutton.cpp @@ -50,7 +50,7 @@ QColor ColorButton::color() const { void ColorButton::chooseColor() { #ifdef HAVE_KDE - QColor c; + QColor c = color(); KColorDialog::getColor(c, this); #else QColor c = QColorDialog::getColor(color(), this); -- 2.20.1