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

10
TODO
View file

@ -46,7 +46,7 @@
- Display in torrent addition dialog: - Display in torrent addition dialog:
* free disk space on selected drive * free disk space on selected drive
* free disk space after torrent download (and/or torrent size) * 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/) - Use ShareMonkey Web service (http://www.sharemonkey.com/)
// in v1.0.0 - FEATURE FREEZE // in v1.0.0 - FEATURE FREEZE
@ -56,11 +56,3 @@
// RC8 // RC8
- BUGFIX: Fix destination save dir in addition dialog - 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> <includestyle>4</includestyle>
<designerintegration>ExternalDesigner</designerintegration> <designerintegration>ExternalDesigner</designerintegration>
<root>/usr/lib/qt4</root> <root>/usr/lib/qt4</root>
<qmake>/usr/bin/qmake-qt4</qmake> <qmake>/usr/bin/qmake</qmake>
<designer>/usr/bin/designer-qt4</designer> <designer>/usr/bin/designer</designer>
<designerpluginpaths/> <designerpluginpaths/>
</qt> </qt>
<references> <references>
<pcs>automatic_%2Fhome%2Fchris%2Fqbittorrent_svn%2Ftrunk</pcs> <pcs>automatic_%2Fhome%2Fishanarora%2Fprojects%2Fqbittorrent</pcs>
<pcs>Qt4</pcs>
</references> </references>
<codecompletion> <codecompletion>
<automaticCodeCompletion>true</automaticCodeCompletion> <automaticCodeCompletion>true</automaticCodeCompletion>
@ -149,14 +148,14 @@
</kdevfilecreate> </kdevfilecreate>
<kdevtrollproject> <kdevtrollproject>
<general> <general>
<activedir></activedir> <activedir>src</activedir>
</general> </general>
<run> <run>
<directoryradio>executable</directoryradio> <directoryradio>executable</directoryradio>
<mainprogram>/home/chris/qbittorrent_svn/trunk/src/qbittorrent</mainprogram> <mainprogram>/home/ishanarora/projects/qbittorrent/src/qbittorrent</mainprogram>
<programargs/> <programargs/>
<globaldebugarguments/> <globaldebugarguments/>
<globalcwd>/home/chris/qbittorrent_svn/trunk</globalcwd> <globalcwd>/home/ishanarora/projects/qbittorrent</globalcwd>
<useglobalprogram>true</useglobalprogram> <useglobalprogram>true</useglobalprogram>
<terminal>false</terminal> <terminal>false</terminal>
<autocompile>true</autocompile> <autocompile>true</autocompile>
@ -187,7 +186,7 @@
</cppsupportpart> </cppsupportpart>
<ctagspart> <ctagspart>
<customArguments/> <customArguments/>
<customTagfilePath>/home/chris/qbittorrent_svn/trunk/tags</customTagfilePath> <customTagfilePath>/home/ishanarora/projects/qbittorrent/tags</customTagfilePath>
<activeTagsFiles/> <activeTagsFiles/>
</ctagspart> </ctagspart>
<kdevdocumentation> <kdevdocumentation>

View file

@ -980,26 +980,10 @@ void GUI::torrentDoubleClicked(QString hash, bool finished) {
case TOGGLE_PAUSE: case TOGGLE_PAUSE:
this->togglePausedState(hash); this->togglePausedState(hash);
break; break;
case DELETE_IT: { case OPEN_DEST: {
int ret = QMessageBox::question( QTorrentHandle h = BTSession->getTorrentHandle(hash);
this, QString savePath = h.save_path();
tr("Are you sure? -- qBittorrent"), QDesktopServices::openUrl(QUrl(savePath));
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));
break; break;
} }
case SHOW_PROPERTIES : case SHOW_PROPERTIES :

View file

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

View file

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

View file

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