Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-07-05 13:10:35 (GMT)
committer Agustin Zubiaga <aguz@sugarlabs.org>2013-07-25 19:53:44 (GMT)
commitd61634af91108d6f1295cb1d82434f0efc17046f (patch)
treec11348929189ddf9d851437ceebc2d12fa284296
parentb333e91fa2eed34fcecf473b056a13a9db5e05ca (diff)
Avoid error opening the image with the object chooser - SL #4540
read_file do not open the file if _object_id is not set. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>
-rw-r--r--ImageViewerActivity.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ImageViewerActivity.py b/ImageViewerActivity.py
index e216850..53f8d84 100644
--- a/ImageViewerActivity.py
+++ b/ImageViewerActivity.py
@@ -353,6 +353,7 @@ class ImageViewerActivity(activity.Activity):
if result == Gtk.ResponseType.ACCEPT:
jobject = chooser.get_selected_object()
if jobject and jobject.file_path:
+ self._object_id = jobject.object_id
self.read_file(jobject.file_path)
self.set_canvas(self.scrolled_window)
self.scrolled_window.show()