mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-03 07:29:59 +08:00
FEATURE: Allow to drag 'n drop urls on the main window
This commit is contained in:
parent
0043edc85f
commit
d680be3626
@ -28,6 +28,7 @@
|
|||||||
- FEATURE: A search request can now be terminated by another
|
- FEATURE: A search request can now be terminated by another
|
||||||
- FEATURE: User is now warned when fast resume data was rejected
|
- FEATURE: User is now warned when fast resume data was rejected
|
||||||
- FEATURE: Url seeds are now displayed in torrent properties and are editable
|
- FEATURE: Url seeds are now displayed in torrent properties and are editable
|
||||||
|
- FEATURE: Allow to drag 'n drop urls on the main window
|
||||||
- I18N: Added Hungarian translation
|
- I18N: Added Hungarian translation
|
||||||
- I18N: Added Brazilian translation
|
- I18N: Added Brazilian translation
|
||||||
- BUGFIX: Progress of paused torrents is now correct on restart
|
- BUGFIX: Progress of paused torrents is now correct on restart
|
||||||
|
3
TODO
3
TODO
@ -45,6 +45,7 @@
|
|||||||
* beta3
|
* beta3
|
||||||
- Translations update ( IN PROGESS)
|
- Translations update ( IN PROGESS)
|
||||||
- Optimize and cleanup code
|
- Optimize and cleanup code
|
||||||
|
- add asserts to squash remaining bugs
|
||||||
- Wait for some bug fixes in libtorrent :
|
- Wait for some bug fixes in libtorrent :
|
||||||
- upload/download limit per torrent
|
- upload/download limit per torrent
|
||||||
- double free or corruption on exit
|
- double free or corruption on exit
|
||||||
@ -53,4 +54,4 @@ LANGUAGES UPDATED:
|
|||||||
- French
|
- French
|
||||||
- English
|
- English
|
||||||
- Japanese
|
- Japanese
|
||||||
- Swedish
|
- Swedish
|
||||||
|
@ -936,13 +936,18 @@ void GUI::dropEvent(QDropEvent *event){
|
|||||||
QSettings settings("qBittorrent", "qBittorrent");
|
QSettings settings("qBittorrent", "qBittorrent");
|
||||||
bool useTorrentAdditionDialog = settings.value("Options/Misc/TorrentAdditionDialog/Enabled", true).toBool();
|
bool useTorrentAdditionDialog = settings.value("Options/Misc/TorrentAdditionDialog/Enabled", true).toBool();
|
||||||
foreach(file, files){
|
foreach(file, files){
|
||||||
|
file = file.trimmed().replace("file://", "");
|
||||||
|
if(file.startsWith("http://", Qt::CaseInsensitive) || file.startsWith("ftp://", Qt::CaseInsensitive) || file.startsWith("https://", Qt::CaseInsensitive)){
|
||||||
|
BTSession->downloadFromUrl(file);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if(useTorrentAdditionDialog){
|
if(useTorrentAdditionDialog){
|
||||||
torrentAdditionDialog *dialog = new torrentAdditionDialog(this);
|
torrentAdditionDialog *dialog = new torrentAdditionDialog(this);
|
||||||
connect(dialog, SIGNAL(torrentAddition(QString, bool, bool, QString)), BTSession, SLOT(addTorrent(QString, bool, bool, QString)));
|
connect(dialog, SIGNAL(torrentAddition(QString, bool, bool, QString)), BTSession, SLOT(addTorrent(QString, bool, bool, QString)));
|
||||||
connect(dialog, SIGNAL(setInfoBarGUI(QString, QString)), this, SLOT(setInfoBar(QString, QString)));
|
connect(dialog, SIGNAL(setInfoBarGUI(QString, QString)), this, SLOT(setInfoBar(QString, QString)));
|
||||||
dialog->showLoad(file.trimmed().replace("file://", ""));
|
dialog->showLoad(file);
|
||||||
}else{
|
}else{
|
||||||
BTSession->addTorrent(file.trimmed().replace("file://", ""));
|
BTSession->addTorrent(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user