[pitivi] RenderDialog: save / restore project settings
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] RenderDialog: save / restore project settings
- Date: Fri, 10 Dec 2010 17:52:27 +0000 (UTC)
commit b229148f6d5e7950fa8f1e56e46246234243a580
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Mon Nov 22 13:57:22 2010 +0000
RenderDialog: save / restore project settings
pitivi/ui/encodingdialog.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index 3719a25..2239312 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -98,7 +98,11 @@ class EncodingDialog(GladeWindow, Renderer, Loggable):
GladeWindow.__init__(self)
self.app = app
- self.settings = project.getSettings()
+ self.project = project
+ # clone the current project settings
+ self.original_settings = self.project.getSettings()
+ self.settings = self.original_settings.copy()
+ self.project.setSettings(self.settings)
# UI widgets
self.window.set_icon_from_file(configure.get_pixmap_dir() + "/pitivi-render-16.png")
@@ -279,3 +283,7 @@ class EncodingDialog(GladeWindow, Renderer, Loggable):
def _deleteEventCb(self, window, event):
self.debug("delete event")
self.destroy()
+
+ def destroy(self):
+ self.project.setSettings(self.original_settings)
+ GladeWindow.destroy(self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]