[pitivi] mainwindow: Initialize "result" in _exportProjectAsTarCb
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] mainwindow: Initialize "result" in _exportProjectAsTarCb
- Date: Sun, 2 Sep 2012 04:00:50 +0000 (UTC)
commit 734bc07980f82cc20f45dd03dd67667265a53056
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Thu Aug 9 00:18:27 2012 -0400
mainwindow: Initialize "result" in _exportProjectAsTarCb
This prevents an UnboundLocalError when the user ends up
not choosing a tarball to export the project to.
pitivi/mainwindow.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 3746320..e800f9e 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -589,6 +589,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
def _exportProjectAsTarCb(self, unused_action):
uri = self._showExportDialog(self.app.current)
+ result = None
if uri:
result = self.app.projectManager.exportProject(self.app.current, uri)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]