From daaa79360a37cac39f87941b113a06e4abef022f Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 10 Oct 2007 16:26:19 +0000 Subject: [PATCH] fix priority...hopefully --- plugins/TorrentFiles/tab_files.py | 4 +--- src/files.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/TorrentFiles/tab_files.py b/plugins/TorrentFiles/tab_files.py index 64e47c5d0..16293af20 100644 --- a/plugins/TorrentFiles/tab_files.py +++ b/plugins/TorrentFiles/tab_files.py @@ -44,7 +44,6 @@ class FilesTabManager(FilesBaseManager): gobject.TYPE_UINT, float) super(FilesTabManager, self).__init__(file_view, file_store) - self.manager = manager self.file_unique_id = None @@ -69,8 +68,7 @@ class FilesTabManager(FilesBaseManager): self.file_unique_id = unique_id def priority_clicked(self, widget): - state = self.manager.get_torrent_state(self.file_unique_id) - if state["compact_mode"]: + if self.manager.get_pref("use_compact_storage"): self.compact_allocation_warning() else: super(FilesTabManager, self).priority_clicked(widget) diff --git a/src/files.py b/src/files.py index fef837550..3c8e4fad1 100644 --- a/src/files.py +++ b/src/files.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# tab_files.py +# files.py # # Copyright (C) Zach Tibbitts 2006 #