From 1ddbf05b92ff64ae5cfdcc761c2e7306bddc9e84 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 17 Oct 2007 03:17:59 +0000 Subject: [PATCH] set file browser fields in deluge's preferences insensitive when in win32 --- src/dialogs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dialogs.py b/src/dialogs.py index 9385363b5..fc0cd1172 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -80,6 +80,11 @@ class PreferencesDlg: self.glade.get_widget("txt_open_folder_location").set_text(self.preferences.get("open_folder_location")) self.glade.get_widget("radio_open_folder_stock").set_active(self.preferences.get("open_folder_stock")) self.glade.get_widget("radio_open_folder_custom").set_active(not self.preferences.get("open_folder_stock")) + if common.windows_check(): + self.glade.get_widget("combo_file_manager").set_sensitive(False) + self.glade.get_widget("txt_open_folder_location").set_sensitive(False) + self.glade.get_widget("radio_open_folder_stock").set_sensitive(False) + self.glade.get_widget("radio_open_folder_custom").set_sensitive(False) self.glade.get_widget("combo_encin").set_active(self.preferences.get("encin_state")) self.glade.get_widget("combo_encout").set_active(self.preferences.get("encout_state")) self.glade.get_widget("combo_enclevel").set_active(self.preferences.get("enclevel_type"))