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

List:       kde-commits
Subject:    KDE/kdeutils/kgpg
From:       Rolf Eike Beer <kde () opensource ! sf-tec ! de>
Date:       2007-10-24 14:23:50
Message-ID: 1193235830.219383.1432.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 728866 by dakon:

Allow selecting multiple keys for import at once

Probably broken since r724610


 M  +5 -1      keyservers.cpp  


--- trunk/KDE/kdeutils/kgpg/keyservers.cpp #728865:728866
@@ -285,6 +285,8 @@
     connect(m_dialogserver, SIGNAL(closeClicked()), this, SLOT(handleQuit()));
     connect(m_listpop, SIGNAL(destroyed()), this, SLOT(slotAbortSearch()));
 
+    m_listpop->kLVsearch->setSelectionMode(QAbstractItemView::ExtendedSelection);
+
     m_count = 0;
     m_keyid = QString();
     m_readmessage.clear();
@@ -429,7 +431,9 @@
             if (item == NULL)
                 item = searchItem;
 
-            keysToSearch << item->data(0, Qt::UserRole).toString();
+            QString id = item->data(0, Qt::UserRole).toString();
+            if (!keysToSearch.contains(id))
+                keysToSearch << id;
         }
     }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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