[pitivi] Fix sensitiveness of the Render button.



commit cab44bff0c2398fe8349a4f13aff008774c57dac
Author: Alessandro Decina <alessandro d gmail com>
Date:   Fri Jun 26 14:44:05 2009 +0200

    Fix sensitiveness of the Render button.

 pitivi/ui/mainwindow.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 4185bf4..17ff12d 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -664,8 +664,8 @@ class PitiviMainWindow(gtk.Window, Loggable):
         self.log("A NEW project is loaded, update the UI!")
         self.project = project
         self._connectToProjectSources(project.sources)
-        if project.timeline.duration > 0:
-            self.render_button.set_sensitive(True)
+        can_render = project.timeline.duration > 0
+        self.render_button.set_sensitive(can_render)
 
     def _projectManagerNewProjectLoadingCb(self, projectManager, uri):
         self.log("A NEW project is being loaded, deactivate UI")



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