Skip to content

Commit

Permalink
Merge pull request #2114 from mtwebster/magical-selection
Browse files Browse the repository at this point in the history
cinnamon-settings: Fix regression caused by earlier patch addressing
  • Loading branch information
clefebvre committed Jun 1, 2013
2 parents afa9806 + 53b5894 commit cb417e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions files/usr/lib/cinnamon-settings/cinnamon-settings.py
Expand Up @@ -80,8 +80,10 @@ def side_view_nav(self, side_view, cat):
selected_items = side_view.get_selected_items()
if len(selected_items) > 0:
self.deselect(cat)
self.go_to_sidepage(cat, selected_items[0])

filtered_path = side_view.get_model().convert_path_to_child_path(selected_items[0])
if filtered_path is not None:
self.go_to_sidepage(cat, filtered_path)

def go_to_sidepage(self, cat, path):
iterator = self.store[cat].get_iter(path)
sidePage = self.store[cat].get_value(iterator,2)
Expand Down

0 comments on commit cb417e9

Please sign in to comment.