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

List:       kde-commits
Subject:    kdeutils/kgpg
From:       Jean-Baptiste Mardelle <bj () altern ! org>
Date:       2005-02-03 12:14:05
Message-ID: 20050203121405.DAC801D197 () office ! kde ! org
[Download RAW message or body]

CVS commit by mardelle: 

fix various small issues in key selection


  M +4 -3      popuppublic.cpp   1.52


--- kdeutils/kgpg/popuppublic.cpp  #1.51:1.52
@@ -275,5 +275,5 @@ void popupPublic::sort()
         }
 
-        if (reselect) {
+        if (reselect || !keysList->currentItem()->isVisible()) {
                 QListViewItem *firstvisible;
                 firstvisible=keysList->firstChild();
@@ -460,5 +460,5 @@ kdDebug(2100)<<"Ok pressed"<<endl;
 
         for ( uint i = 0; i < list.count(); ++i )
-                if ( list.at(i) ) {
+          if ( list.at(i) && list.at(i)->isVisible()) {
                         if (!list.at(i)->text(2).isEmpty()) selectedKeys<<list.at(i)->text(2);
                         else selectedKeys<<list.at(i)->text(0);
@@ -466,4 +466,5 @@ kdDebug(2100)<<"Ok pressed"<<endl;
         if (selectedKeys.isEmpty() && !CBsymmetric->isChecked())
                 return;
+        if (CBsymmetric->isChecked()) selectedKeys=NULL;
 kdDebug(2100)<<"Selected Key:"<<selectedKeys<<endl;
         QStringList returnOptions;


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

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