[pitivi] mainwindow: Remove unused variable setting logic



commit 0e259b722ff3441672ba3c03a6bd2c19a5e6305e
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Sun Jan 19 20:26:59 2014 +0100

    mainwindow: Remove unused variable setting logic

 pitivi/mainwindow.py |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 74ccfaa..42eaeaa 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -1188,10 +1188,7 @@ class PitiviMainWindow(Gtk.Window, Loggable):
             # need to do this to work around bug in Gst.uri_construct
             # which escapes all /'s in path!
             uri = "file://" + chooser.get_filename()
-            format_ = chooser.get_filter().get_name()
-            if format_ == _("Detect automatically"):
-                format_ = None
-            self.log("uri:%s , format:%s", uri, format_)
+            self.log("uri: %s", uri)
             ret = uri
         else:
             self.log("User didn't choose a URI to export project to")
@@ -1232,10 +1229,8 @@ class PitiviMainWindow(Gtk.Window, Loggable):
             # need to do this to work around bug in Gst.uri_construct
             # which escapes all /'s in path!
             uri = "file://" + chooser.get_filename()
-            format_ = chooser.get_filter().get_name()
-            self.log("uri:%s , format:%s", uri, format_)
-            if format_ == _("Detect automatically"):
-                format_ = None
+            file_filter = chooser.get_filter().get_name()
+            self.log("uri:%s , filter:%s", uri, file_filter)
             self.settings.lastProjectFolder = chooser.get_current_folder()
             ret = uri
         else:


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