[pitivi] project: Don't mangle the exceptions raised by GES while saving



commit ce69892df2c626ab3010f128a9c838771a2913bd
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Sun Aug 25 17:04:10 2013 -0400

    project: Don't mangle the exceptions raised by GES while saving
    
    This string had an incorrect syntax (should have been '_("foo") % e'),
    which made mainwindow's save-project-failed handler choke in some cases
    (such as overwriting a project that has been marked read-only).
    
    However, there's no point in saying "Cannot save with this file format" still,
    as the error dialog has a header that says 'Unable to save project "%s"' and
    the error strings raised by GES should be sufficient to use as secondary text.

 pitivi/project.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 7143426..04496fe 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -280,8 +280,7 @@ class ProjectManager(Signallable, Loggable):
             saved = self.current.save(self.current.timeline, uri, formatter_type, overwrite=True)
         except Exception, e:
             saved = False
-            self.emit("save-project-failed", uri,
-                      _("Cannot save with this file format. %s"), e)
+            self.emit("save-project-failed", uri, e)
 
         if saved:
             if not backup:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]