summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcos Pinto <markybob@dipconsultants.com>2007-10-17 03:12:26 +0000
committerMarcos Pinto <markybob@dipconsultants.com>2007-10-17 03:12:26 +0000
commitcc77df82166fb875b4f3663acda0310cbc15f2c2 (patch)
treeb250a8b99db1760a1478df17107b4adf2ef37fd1
parent5fb1987b1b6bb3d186f455be4ed53af01564b6b2 (diff)
downloaddeluge-cc77df82166fb875b4f3663acda0310cbc15f2c2.tar.gz
deluge-cc77df82166fb875b4f3663acda0310cbc15f2c2.tar.bz2
deluge-cc77df82166fb875b4f3663acda0310cbc15f2c2.zip
make torrentfile pref field insensitive when on win32 to avoid confusing windows users
-rw-r--r--plugins/TorrentFiles/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/TorrentFiles/__init__.py b/plugins/TorrentFiles/__init__.py
index 99050d45a..6176393bf 100644
--- a/plugins/TorrentFiles/__init__.py
+++ b/plugins/TorrentFiles/__init__.py
@@ -110,6 +110,8 @@ class TorrentFiles:
def configure(self, window):
self.glade.get_widget("file_viewer").\
set_text(self.config.get("file_viewer"))
+ if deluge.common.windows_check():
+ self.glade.get_widget("file_viewer").set_sensitive(False)
self.dialog.set_transient_for(window)
self.dialog.show()