From: Manuel Nickschas Date: Thu, 30 Jul 2009 09:10:01 +0000 (+0200) Subject: Initially display the current color in KColorDialog X-Git-Tag: 0.5-rc1~102 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=5227fae052f5e5567eddeed37daca8bafc9f0351 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. --- 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);