[pitivi] Changed EncodingDialog to apply the settings changed in the UI to the project settings. Fixes bug 64



commit 82970acd6a0738e2bfd5bd7ab70e0b3f9014640c
Author: Alex BÄ?luÈ? <alexandru balut gmail com>
Date:   Sun May 1 23:58:58 2011 +0200

    Changed EncodingDialog to apply the settings changed in the UI to the project settings.
    Fixes bug 647023.

 pitivi/ui/encodingdialog.py |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index 6339448..8e64c7e 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -121,10 +121,7 @@ class EncodingDialog(GladeWindow, Renderer, Loggable):
 
         self.app = app
         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)
+        self.settings = self.project.getSettings()
 
         # UI widgets
         self.window.set_icon_from_file(configure.get_pixmap_dir() + "/pitivi-render-16.png")
@@ -317,5 +314,6 @@ class EncodingDialog(GladeWindow, Renderer, Loggable):
         self.destroy()
 
     def destroy(self):
-        self.project.setSettings(self.original_settings)
+        # TODO: Do this only when the settings actually changed.
+        self.project.setSettings(self.settings)
         GladeWindow.destroy(self)



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