Bug 127023 - DCC send multiple files
Summary: DCC send multiple files
Status: RESOLVED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Shintaro Matsuoka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-09 17:26 UTC by Mario Hein
Modified: 2006-05-18 07:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 );
         }
     }
 }