mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 04:54:23 +00:00
[GTKUI] Fix gtk warning on shutdown
This commit is contained in:
parent
7c1f39d10e
commit
f3bfe177ce
@ -427,8 +427,9 @@ class ListView:
|
|||||||
# Store a copy of this columns state in case it's re-added
|
# Store a copy of this columns state in case it's re-added
|
||||||
state = self.create_column_state(self.columns[header].column)
|
state = self.create_column_state(self.columns[header].column)
|
||||||
self.removed_columns_state.append(state)
|
self.removed_columns_state.append(state)
|
||||||
|
# Only remove column if column is associated with the treeview. This avoids
|
||||||
# Start by removing this column from the treeview
|
# warning on shutdown when GTKUI is closed before plugins try to remove columns
|
||||||
|
if self.columns[header].column.get_tree_view() is not None:
|
||||||
self.treeview.remove_column(self.columns[header].column)
|
self.treeview.remove_column(self.columns[header].column)
|
||||||
# Get the column indices
|
# Get the column indices
|
||||||
column_indices = self.columns[header].column_indices
|
column_indices = self.columns[header].column_indices
|
||||||
|
Loading…
x
Reference in New Issue
Block a user