Bug 127023

Summary: DCC send multiple files
Product: [Applications] konversation Reporter: Mario Hein <MHein03>
Component: generalAssignee: Shintaro Matsuoka <shin>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mario Hein 2006-05-09 17:26:02 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Gentoo Packages

It would be great if multiple files could be selected in the DCC file transfer dialog.
Comment 1 Shintaro Matsuoka 2006-05-18 07:58:53 UTC
SVN commit 542057 by shin:

now multiple files can be selected in the DCC SEND file select dialog

BUG: 127023

 M  +7 -6      server.cpp  


--- trunk/extragear/network/konversation/src/server.cpp #542056:542057
@@ -1791,16 +1791,17 @@
     // do we have a recipient *now*?
     if(!recipient.isEmpty())
     {
-        KURL fileURL=KFileDialog::getOpenURL(
+        KURL::List fileURLs=KFileDialog::getOpenURLs(
             lastDccDir,
             QString::null,
             getMainWindow(),
-            i18n("Select File to Send to %1").arg(recipient)
-            );
-        if(!fileURL.isEmpty())
+            i18n("Select File(s) to Send to %1").arg(recipient)
+        );
+        KURL::List::iterator it;
+        for ( it = fileURLs.begin() ; it != fileURLs.end() ; ++it )
         {
-            lastDccDir=fileURL.directory();
-            addDccSend(recipient,fileURL);
+            lastDccDir = (*it).directory();
+            addDccSend( recipient, *it );
         }
     }
 }