Reload views after registering images so that the new images appear.
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 29 Jul 2004 11:07:00 +0000 (11:07 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 29 Jul 2004 11:07:00 +0000 (11:07 +0000)
src/gkofoto/albums.py
src/gkofoto/mainwindow.py

index a9b0fee..116bbfe 100644 (file)
@@ -99,7 +99,7 @@ class Albums:
         dialog = RegisterImagesDialog(selectedAlbum)
         dialog.run()
         dialog.destroy()
-        # TODO: update objectCollection?
+        self.__mainWindow.reload() # TODO: don't reload everything.
 
     def _createAlbumHelper(self, tag, desc):
         newAlbum = env.shelf.createAlbum(tag)
index 25f826f..c0e3f6b 100644 (file)
@@ -101,6 +101,7 @@ class MainWindow(gtk.Window):
         dialog = RegisterImagesDialog()
         dialog.run()
         dialog.destroy()
+        self.reload() # TODO: don't reload everything.
 
     def handleModifiedOrRenamedImages(self, widget, data):
         dialog = HandleImagesDialog()