Better activation of object view from row activation in table view.
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 23 Jan 2006 20:11:33 +0000 (20:11 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 23 Jan 2006 20:11:33 +0000 (20:11 +0000)
src/packages/kofoto/gkofoto/tableview.py

index d7880ba..2729978 100644 (file)
@@ -306,7 +306,7 @@ class TableView(ObjectCollectionView):
         model = self._objectCollection.getModel()
         row = model[path]
         if not row[ObjectCollection.COLUMN_IS_ALBUM]:
-            env.mainwindow.showSingleObjectView()
+            env.widgets["objectViewToggleButton"].set_active(True)
 
     def _viewColumnToggled(self, checkMenuItem, columnName):
         if checkMenuItem.get_active():