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 @@ @@ -13,6 +13,7 @@
- FEATURE: Add Check/Uncheck all feature in Web UI
- FEATURE: Search engine can now be disabled
- 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: The user can disable permanently recursive torrent download
- COSMETIC: Display peers country name in tooltip

5
src/propertieswidget.cpp

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

5
src/torrentadditiondlg.cpp

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

5
src/ui/propertieswidget.ui

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

5
src/ui/torrentadditiondlg.ui

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

Loading…
Cancel
Save