X-Git-Url: http://git.maemo.org/git/?p=watersofshiloah;a=blobdiff_plain;f=src%2Fwindows.py;h=65947b3be39b60640780d49fc67a59fadb2425fe;hp=9b3896826b3942c9fca4da6311c1dd2239309bb9;hb=78178cc390178f8f47669bfb9d8e090162c10b50;hpb=26178fdaeca905e3c74e464a4d6e5b6510cb4f44;ds=sidebyside diff --git a/src/windows.py b/src/windows.py index 9b38968..65947b3 100644 --- a/src/windows.py +++ b/src/windows.py @@ -476,9 +476,14 @@ class RadioWindow(BasicWindow): row = program["time"], program["title"] self._programmingModel.append(row) - path = (self._get_current_row(), ) - self._treeView.scroll_to_cell(path) - self._treeView.get_selection().select_path(path) + currentDate = datetime.datetime.now() + if currentDate.date() != self._dateShown.date(): + self._treeView.get_selection().set_mode(gtk.SELECTION_NONE) + else: + self._treeView.get_selection().set_mode(gtk.SELECTION_SINGLE) + path = (self._get_current_row(), ) + self._treeView.scroll_to_cell(path) + self._treeView.get_selection().select_path(path) @misc_utils.log_exception(_moduleLogger) def _on_load_error(self, exception):