[pitivi] medialibrary: Do not pass useless variables into _updateProgress



commit bbe0fd8f0d4ef3156008c739e8ba55ebbb7b377f
Author: Thibault Saunier <thibault saunier collabora com>
Date:   Fri Dec 28 11:38:33 2012 -0300

    medialibrary: Do not pass useless variables into _updateProgress

 pitivi/medialibrary.py |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index d12f394..3087ba4 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -485,13 +485,12 @@ class MediaLibraryWidget(Gtk.VBox, Loggable):
         self._importDialog.add_filter(default)
         self._importDialog.show()
 
-    def _updateProgressbar(self, current_clip_iter=None, total_clips=None):
+    def _updateProgressbar(self):
         """
         Update the _progressbar with the ratio of clips imported vs the total
         """
-        if current_clip_iter is None and total_clips is None:
-            current_clip_iter = self.app.current.nb_imported_files
-            total_clips = self.app.current.nb_files_to_import
+        current_clip_iter = self.app.current.nb_imported_files
+        total_clips = self.app.current.nb_files_to_import
 
         progressbar_text = _("Importing clip %(current_clip)d of %(total)d" %
             {"current_clip": current_clip_iter,



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