[pitivi: 2/14] Sync sensitiveness of the render button when a project is loaded. Fixes #585794.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi: 2/14] Sync sensitiveness of the render button when a project is loaded. Fixes #585794.
- Date: Wed, 24 Jun 2009 13:10:25 +0000 (UTC)
commit 5556643fd999a951f55806bda60b47508e70c897
Author: Alessandro Decina <alessandro d gmail com>
Date: Mon Jun 15 15:38:12 2009 +0200
Sync sensitiveness of the render button when a project is loaded. Fixes #585794.
pitivi/ui/mainwindow.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 08f6af2..09f3454 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -669,6 +669,8 @@ class PitiviMainWindow(gtk.Window, Loggable):
def _projectManagerNewProjectLoadedCb(self, projectManager, project):
self.log("A NEW project is loaded, update the UI!")
self.project = project
+ if project.timeline.duration > 0:
+ self.render_button.set_sensitive(True)
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]