From 2374d44c7097e94f70448584a44c77ef5a64e439 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 20 May 2009 23:46:27 +0000 Subject: [PATCH] Add error dialog popup when trying to de-select files in the add torrent dialog while using compact allocation --- deluge/ui/gtkui/addtorrentdialog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py index 3f1757971..b349af5eb 100644 --- a/deluge/ui/gtkui/addtorrentdialog.py +++ b/deluge/ui/gtkui/addtorrentdialog.py @@ -465,6 +465,8 @@ class AddTorrentDialog(component.Component): # Check to see if we can change file priorities (model, row) = self.listview_torrents.get_selection().get_selected() 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 (model, paths) = self.listview_files.get_selection().get_selected_rows() if len(paths) > 1: