[pitivi] application.py: fix a bug exposed by Base integration test



commit 1e73f0a5a88ebde7d993596bc5d6a37218883e32
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Wed Oct 28 14:26:10 2009 -0700

    application.py: fix a bug exposed by Base integration test

 pitivi/application.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index d3594a8..95c9e52 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -163,7 +163,8 @@ class Pitivi(Loggable, Signallable):
             return False
         self.threads.stopAllThreads()
         self.settings.storeSettings()
-        self.deviceprobe.release()
+        if self.deviceprobe:
+            self.deviceprobe.release()
         self.deviceprobe = None
         self.current = None
         instance.PiTiVi = None
@@ -213,7 +214,6 @@ class Pitivi(Loggable, Signallable):
         self.current = None
         self.emit("project-closed", project)
 
-
 class InteractivePitivi(Pitivi):
     usage = _("""
       %prog [PROJECT_FILE]



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