[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeedu/kig/modes
From:       Pino Toscano <toscano.pino () tiscali ! it>
Date:       2005-04-30 21:44:18
Message-ID: 20050430214418.4DDBB629 () office ! kde ! org
[Download RAW message or body]

CVS commit by pino: 

When selecting a custom color for one object, put the old object color as selected \
color in the Color dialog. (Mmm... too many "color" in this commit message... ;)


  M +3 -1      popup.cc   1.67


--- kdeedu/kig/modes/popup.cc  #1.66:1.67
@@ -641,5 +641,7 @@ bool BuiltinObjectActionsProvider::execu
     else
     {
-      int result = KColorDialog::getColor( color );
+      if ( os.size() == 1 )
+        color = os.front()->drawer()->color();
+      int result = KColorDialog::getColor( color, &w );
       if ( result != KColorDialog::Accepted ) return true;
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic