Fix not being able to rename folder due to constant updating

This commit is contained in:
John Garland 2009-12-26 17:10:14 +00:00
parent 3e67620e55
commit 7f33292aca
1 changed files with 5 additions and 4 deletions

View File

@ -457,7 +457,6 @@ class FilesTab(Tab):
files_list.sort() files_list.sort()
for index, row in files_list: for index, row in files_list:
# Do not update a row that is being edited # Do not update a row that is being edited
if self._editing_index is not None:
if self._editing_index == row[5]: if self._editing_index == row[5]:
continue continue
@ -470,6 +469,8 @@ class FilesTab(Tab):
file_priority = status["file_priorities"][index] file_priority = status["file_priorities"][index]
if row[4] != file_priority: if row[4] != file_priority:
row[4] = file_priority row[4] = file_priority
if self._editing_index != -1:
# Only update if no folder is being edited
self.update_folder_percentages() self.update_folder_percentages()
def _on_button_press_event(self, widget, event): def _on_button_press_event(self, widget, event):