Add error dialog popup when trying to de-select files in the add torrent
dialog while using compact allocation
This commit is contained in:
parent
d2b5e69a5e
commit
2374d44c70
|
@ -465,6 +465,8 @@ class AddTorrentDialog(component.Component):
|
||||||
# Check to see if we can change file priorities
|
# Check to see if we can change file priorities
|
||||||
(model, row) = self.listview_torrents.get_selection().get_selected()
|
(model, row) = self.listview_torrents.get_selection().get_selected()
|
||||||
if self.options[model[row][0]]["compact_allocation"]:
|
if self.options[model[row][0]]["compact_allocation"]:
|
||||||
|
import dialogs
|
||||||
|
dialogs.ErrorDialog(_("Unable to set file priority!"), _("File prioritization is unavailable when using Compact allocation.")).run()
|
||||||
return
|
return
|
||||||
(model, paths) = self.listview_files.get_selection().get_selected_rows()
|
(model, paths) = self.listview_files.get_selection().get_selected_rows()
|
||||||
if len(paths) > 1:
|
if len(paths) > 1:
|
||||||
|
|
Loading…
Reference in New Issue