Browse Source

FEATURE: Several files can now be disabled at once (closes #598365)

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
c01f7102e6
  1. 1
      Changelog
  2. 5
      src/propertieswidget.cpp
  3. 5
      src/torrentadditiondlg.cpp
  4. 5
      src/ui/propertieswidget.ui
  5. 5
      src/ui/torrentadditiondlg.ui

1
Changelog

@ -13,6 +13,7 @@
- FEATURE: Add Check/Uncheck all feature in Web UI - FEATURE: Add Check/Uncheck all feature in Web UI
- FEATURE: Search engine can now be disabled - FEATURE: Search engine can now be disabled
- FEATURE: Torrents can be automatically paused once they reach a given ratio - FEATURE: Torrents can be automatically paused once they reach a given ratio
- FEATURE: Several files can now be disabled at once
- BUGFIX: Hide seeding torrents files priorities in Web UI - BUGFIX: Hide seeding torrents files priorities in Web UI
- BUGFIX: The user can disable permanently recursive torrent download - BUGFIX: The user can disable permanently recursive torrent download
- COSMETIC: Display peers country name in tooltip - COSMETIC: Display peers country name in tooltip

5
src/propertieswidget.cpp

@ -545,6 +545,7 @@ void PropertiesWidget::displayFilesListMenu(const QPoint&){
} }
QMenu subMenu; QMenu subMenu;
subMenu.setTitle(tr("Priority")); subMenu.setTitle(tr("Priority"));
subMenu.addAction(actionNot_downloaded);
subMenu.addAction(actionNormal); subMenu.addAction(actionNormal);
subMenu.addAction(actionHigh); subMenu.addAction(actionHigh);
subMenu.addAction(actionMaximum); subMenu.addAction(actionMaximum);
@ -561,6 +562,10 @@ void PropertiesWidget::displayFilesListMenu(const QPoint&){
} else { } else {
if(act == actionMaximum) { if(act == actionMaximum) {
prio = MAXIMUM; prio = MAXIMUM;
} else {
if(act == actionNot_downloaded) {
prio = IGNORED;
}
} }
} }
qDebug("Setting files priority"); qDebug("Setting files priority");

5
src/torrentadditiondlg.cpp

@ -288,6 +288,7 @@ torrentAdditionDialog::torrentAdditionDialog(GUI *parent, Bittorrent* _BTSession
} }
QMenu subMenu; QMenu subMenu;
subMenu.setTitle(tr("Priority")); subMenu.setTitle(tr("Priority"));
subMenu.addAction(actionNot_downloaded);
subMenu.addAction(actionNormal); subMenu.addAction(actionNormal);
subMenu.addAction(actionHigh); subMenu.addAction(actionHigh);
subMenu.addAction(actionMaximum); subMenu.addAction(actionMaximum);
@ -304,6 +305,10 @@ torrentAdditionDialog::torrentAdditionDialog(GUI *parent, Bittorrent* _BTSession
} else { } else {
if(act == actionMaximum) { if(act == actionMaximum) {
prio = MAXIMUM; prio = MAXIMUM;
} else {
if(act == actionNot_downloaded) {
prio = IGNORED;
}
} }
} }
qDebug("Setting files priority"); qDebug("Setting files priority");

5
src/ui/propertieswidget.ui

@ -957,6 +957,11 @@ p, li { white-space: pre-wrap; }
<string>Maximum</string> <string>Maximum</string>
</property> </property>
</action> </action>
<action name="actionNot_downloaded">
<property name="text">
<string>Not downloaded</string>
</property>
</action>
</widget> </widget>
<resources> <resources>
<include location="../icons.qrc"/> <include location="../icons.qrc"/>

5
src/ui/torrentadditiondlg.ui

@ -327,6 +327,11 @@
<string>Maximum</string> <string>Maximum</string>
</property> </property>
</action> </action>
<action name="actionNot_downloaded">
<property name="text">
<string>Not downloaded</string>
</property>
</action>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>

Loading…
Cancel
Save