1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 06:37:17 +00:00

Updated hscommon and adapted to changes in hscommon.gui.table.Table.refresh().

This commit is contained in:
Virgil Dupras
2010-11-24 16:12:10 +01:00
parent 6770d22438
commit 95efac187b
5 changed files with 5 additions and 9 deletions

View File

@@ -7,7 +7,7 @@
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
from hsgui.tree import Tree, Node
from hscommon.gui.tree import Tree, Node
from ..directories import STATE_NORMAL, STATE_REFERENCE, STATE_EXCLUDED
from .base import GUIObject

View File

@@ -8,7 +8,7 @@
# http://www.hardcoded.net/licenses/bsd_license
from hscommon.notify import Listener
from hsgui.table import GUITable, Row
from hscommon.gui.table import GUITable, Row
class ProblemTable(GUITable, Listener):
def __init__(self, view, problem_dialog):
@@ -31,7 +31,6 @@ class ProblemTable(GUITable, Listener):
#--- Event handlers
def problems_changed(self):
self.refresh()
self.view.refresh()
class ProblemRow(Row):

View File

@@ -9,7 +9,7 @@
from operator import attrgetter
from hsgui.table import GUITable, Row
from hscommon.gui.table import GUITable, Row
from .base import GUIObject
@@ -87,7 +87,6 @@ class ResultTable(GUIObject, GUITable):
def _refresh_with_view(self):
self.refresh()
self.view.refresh()
self.view.show_selected_row()
#--- Public
@@ -139,7 +138,6 @@ class ResultTable(GUIObject, GUITable):
return
self._delta_values = value
self.refresh()
self.view.refresh()
@property
def selected_dupe_count(self):
@@ -156,7 +154,7 @@ class ResultTable(GUIObject, GUITable):
# What we want to to here is that instead of restoring selected *dupes* after refresh, we
# restore selected *paths*.
indexes = self.selected_indexes
self.refresh()
self.refresh(refresh_view=False)
self.select(indexes)
self.view.refresh()