diff options
author | Ignacio RodrÃguez <ignacio@sugarlabs.org> | 2013-12-07 14:40:38 (GMT) |
---|---|---|
committer | Ignacio RodrÃguez <ignacio@sugarlabs.org> | 2013-12-07 14:40:38 (GMT) |
commit | 77e2297eb6e3e7fa40bf8fd28fc8ef0e4a830808 (patch) | |
tree | 7ad79018a6a77549f81fb73087f2713eec618194 | |
parent | 2fdfcac8c8e5b2ab0e0767ff4a4486bbca3f694e (diff) |
Allow load example when textview is not modified
-rw-r--r-- | pippy_app.py | 7 |
1 files changed, 6 insertions, 1 deletions
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) |