- Allow to open destination folder on double-click

This commit is contained in:
Christophe Dumez 2007-11-16 18:26:00 +00:00
parent b47073901f
commit 18ee43225e
7 changed files with 20 additions and 44 deletions

View file

@ -1,6 +1,7 @@
* Tuesday October 06 2007 - Christophe Dumez <chris@qbittorrent.org> - v1.1.0
- FEATURE: Option to start qBittorrent minimized in systray
- FEATURE: Allow to define double-click actions in torrents lists
- FEATURE: Allow to open torrent destination folder
- BUGFIX: Do not display seeds number in seeding list (always 0)
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v1.0.0

10
TODO
View file

@ -46,7 +46,7 @@
- Display in torrent addition dialog:
* free disk space on selected drive
* free disk space after torrent download (and/or torrent size)
- Add "Open destination dir" on double click
- Add "Open destination dir" on right click
- Use ShareMonkey Web service (http://www.sharemonkey.com/)
// in v1.0.0 - FEATURE FREEZE
@ -56,11 +56,3 @@
// RC8
- BUGFIX: Fix destination save dir in addition dialog
rc6->rc7 changelog:
- BUGFIX: Catching DHT exception in case there is a problem
- BUGFIX: Removed build dependency on Python
- BUGFIX: Fixed a bug in children update when changing files priorities
- BUGFIX: Pause/Start All now affect all tabs, not only the current one
- BUGFIX: Don't reload all torrents everytime settings are saved
- BUGFIX: Don't reload seeding torrents anymore (no point)
- I18N: Updated Turkish translation

View file

@ -94,13 +94,12 @@
<includestyle>4</includestyle>
<designerintegration>ExternalDesigner</designerintegration>
<root>/usr/lib/qt4</root>
<qmake>/usr/bin/qmake-qt4</qmake>
<designer>/usr/bin/designer-qt4</designer>
<qmake>/usr/bin/qmake</qmake>
<designer>/usr/bin/designer</designer>
<designerpluginpaths/>
</qt>
<references>
<pcs>automatic_%2Fhome%2Fchris%2Fqbittorrent_svn%2Ftrunk</pcs>
<pcs>Qt4</pcs>
<pcs>automatic_%2Fhome%2Fishanarora%2Fprojects%2Fqbittorrent</pcs>
</references>
<codecompletion>
<automaticCodeCompletion>true</automaticCodeCompletion>
@ -149,14 +148,14 @@
</kdevfilecreate>
<kdevtrollproject>
<general>
<activedir></activedir>
<activedir>src</activedir>
</general>
<run>
<directoryradio>executable</directoryradio>
<mainprogram>/home/chris/qbittorrent_svn/trunk/src/qbittorrent</mainprogram>
<mainprogram>/home/ishanarora/projects/qbittorrent/src/qbittorrent</mainprogram>
<programargs/>
<globaldebugarguments/>
<globalcwd>/home/chris/qbittorrent_svn/trunk</globalcwd>
<globalcwd>/home/ishanarora/projects/qbittorrent</globalcwd>
<useglobalprogram>true</useglobalprogram>
<terminal>false</terminal>
<autocompile>true</autocompile>
@ -187,7 +186,7 @@
</cppsupportpart>
<ctagspart>
<customArguments/>
<customTagfilePath>/home/chris/qbittorrent_svn/trunk/tags</customTagfilePath>
<customTagfilePath>/home/ishanarora/projects/qbittorrent/tags</customTagfilePath>
<activeTagsFiles/>
</ctagspart>
<kdevdocumentation>

View file

@ -980,26 +980,10 @@ void GUI::torrentDoubleClicked(QString hash, bool finished) {
case TOGGLE_PAUSE:
this->togglePausedState(hash);
break;
case DELETE_IT: {
int ret = QMessageBox::question(
this,
tr("Are you sure? -- qBittorrent"),
tr("Are you sure you want to delete the selected item(s) from download list and from hard drive?"),
tr("&Yes"), tr("&No"),
QString(), 0, 1);
if(ret)
return;
QString fileName = h.name();
// Remove the torrent
BTSession->deleteTorrent(hash, true);
// Delete item from list
if(finished) {
finishedTorrentTab->deleteTorrent(hash);
} else {
downloadingTorrentTab->deleteTorrent(hash);
}
// Update info bar
downloadingTorrentTab->setInfoBar(tr("'%1' was removed permanently.", "'xxx.avi' was removed permanently.").arg(fileName));
case OPEN_DEST: {
QTorrentHandle h = BTSession->getTorrentHandle(hash);
QString savePath = h.save_path();
QDesktopServices::openUrl(QUrl(savePath));
break;
}
case SHOW_PROPERTIES :

View file

@ -610,12 +610,12 @@
</item>
<item>
<property name="text" >
<string>Delete torrent</string>
<string>Open destination folder</string>
</property>
</item>
<item>
<property name="text" >
<string>Show torrent's properties</string>
<string>Display torrent properties</string>
</property>
</item>
</widget>
@ -653,12 +653,12 @@
</item>
<item>
<property name="text" >
<string>Delete torrent</string>
<string>Open destination folder</string>
</property>
</item>
<item>
<property name="text" >
<string>Show torrent's properties</string>
<string>Display torrent properties</string>
</property>
</item>
</widget>

View file

@ -998,14 +998,14 @@ QString options_imp::getScanDir() const {
// Return action on double-click on a downloading torrent set in options
int options_imp::getActionOnDblClOnTorrentDl() const {
if(actionTorrentDlOnDblClBox->currentIndex()<1)
return 1;
return 0;
return actionTorrentDlOnDblClBox->currentIndex();
}
// Return action on double-click on a finished torrent set in options
int options_imp::getActionOnDblClOnTorrentFn() const {
if(actionTorrentFnOnDblClBox->currentIndex()<1)
return 1;
return 0;
return actionTorrentFnOnDblClBox->currentIndex();
}

View file

@ -38,7 +38,7 @@
// actions on double-click on torrents
#define TOGGLE_PAUSE 0
#define DELETE_IT 1
#define OPEN_DEST 1
#define SHOW_PROPERTIES 2
using namespace libtorrent;