Summary: | Add multiple torrents in one go | ||
---|---|---|---|
Product: | [Applications] ktorrent | Reporter: | Eike Hein <hein> |
Component: | general | Assignee: | Joris Guisson <joris.guisson> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Eike Hein
2006-06-14 16:35:03 UTC
We will see, we have a way of opening things silently for DCOP. Opening them all silently could be possible. Yeah, suppressing the "Select files to download" dialogs on multi-open and adding the torrents silently sounds pretty good to me. I'm not sure how many people really rely on selecting the files prior to downloading. I use it quite a lot when downloading files. I quite often deselect text files and the likes. Although I agree that it would be quite unhelpful when you want to start multiple files at once. You could always deselect any files you don't want from the files tab in the info widget. However, some people might like to get that file selection dialog, so perhaps it should be made optional? another aspect to keep in mind is that if you have a big list of torrents to add and a few are already added, to make sure the error handling is pretty graceful i just went through adding ~70 torrents of which i had about ~10 already queued SVN commit 705844 by guisson: Added option to open multiple torrents in one go (in case of multiple torrents, we will open them silently) BUG: 129150 M +3 -0 ChangeLog M +18 -3 ktorrent/gui.cpp --- trunk/extragear/network/ktorrent/ChangeLog #705843:705844 @@ -3,4 +3,7 @@ Changes in 3.0dev : - Added option to select the network interface to use - Added option to disable data checking during uploading +- Added possibility to open multiple torrents in one go (they will be opened +silently) +- Added option to do a data check when a torrent is finished --- trunk/extragear/network/ktorrent/ktorrent/gui.cpp #705843:705844 @@ -226,10 +226,25 @@ void GUI::openTorrent() { QString filter = "*.torrent|" + i18n("Torrent Files") + "\n*|" + i18n("All Files"); - KUrl url = KFileDialog::getOpenUrl(KUrl(), filter, this, i18n("Open Location")); + KUrl::List urls = KFileDialog::getOpenUrls(KUrl(), filter, this, i18n("Open Location")); - if (url.isValid()) - load(url); + if (urls.count() == 0) + return; + else if (urls.count() == 1) + { + KUrl url = urls.front(); + if (url.isValid()) + load(url); + } + else + { + // load multiple torrents silently + foreach (KUrl url,urls) + { + if (url.isValid()) + core->loadSilently(url); + } + } } void GUI::startTorrent() |