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

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/widgets
From:       Christoph Feck <christoph () maxiom ! de>
Date:       2010-08-11 1:29:16
Message-ID: 20100811012916.6E218AC7E9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1161872 by cfeck:

Fix insertation in default (alphabetical) order

CCBUG: 247214


 M  +2 -2      klanguagebutton.cpp  


--- trunk/KDE/kdelibs/kdeui/widgets/klanguagebutton.cpp #1161871:1161872
@@ -32,7 +32,7 @@
 
 static void checkInsertPos( QMenu *popup, const QString &str, int &index )
 {
-  if ( index == -1 )
+  if ( index != -1 )
     return;
 
   int a = 0;
@@ -149,7 +149,7 @@
   QAction *a = new QAction(QIcon(), text, this);
   a->setData(languageCode);
   if ( index >= 0 && index < d->popup->actions().count()-1)
-    d->popup->insertAction(a, d->popup->actions()[index]);
+    d->popup->insertAction(d->popup->actions()[index], a);
   else
     d->popup->addAction(a);
   d->ids.append(languageCode);
[prev in list] [next in list] [prev in thread] [next in thread] 

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