Initially display the current color in KColorDialog
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 30 Jul 2009 09:10:01 +0000 (11:10 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Aug 2009 18:25:58 +0000 (20:25 +0200)
When clicking on a ColorButton in KDE, we would start with white rather than
the button's current color.

src/uisupport/colorbutton.cpp

index 15e9de4..c42f152 100644 (file)
@@ -50,7 +50,7 @@ QColor ColorButton::color() const {
 
 void ColorButton::chooseColor() {
 #ifdef HAVE_KDE
 
 void ColorButton::chooseColor() {
 #ifdef HAVE_KDE
-  QColor c;
+  QColor c = color();
   KColorDialog::getColor(c, this);
 #else
   QColor c = QColorDialog::getColor(color(), this);
   KColorDialog::getColor(c, this);
 #else
   QColor c = QColorDialog::getColor(color(), this);