From 77e2297eb6e3e7fa40bf8fd28fc8ef0e4a830808 Mon Sep 17 00:00:00 2001 From: Ignacio Rodríguez Date: Sat, 07 Dec 2013 14:40:38 +0000 Subject: Allow load example when textview is not modified --- diff --git a/pippy_app.py b/pippy_app.py index a440e4c..396f021 100644 --- a/pippy_app.py +++ b/pippy_app.py @@ -329,8 +329,13 @@ Discard changes?') alert.connect('response', self._discard_changes_cb, path) self.add_alert(alert) return False + else: + values = {} + values['name'] = os.path.basename(path) + values['path'] = path + self.selection_cb(values) - return True + return False def _discard_changes_cb(self, alert, response_id, path): self.remove_alert(alert) -- cgit v0.9.1