[pitivi/ges] Preset.py: fixes bug when deletion just after save not works
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges] Preset.py: fixes bug when deletion just after save not works
- Date: Sun, 25 Mar 2012 17:53:54 +0000 (UTC)
commit 42300f7035bbdf9f3a5cfa1d5e60402856410cd2
Author: Matas Brazdeikis <matas brazdeikis lt>
Date: Mon Mar 19 22:15:16 2012 +0000
Preset.py: fixes bug when deletion just after save not works
pitivi/preset.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/preset.py b/pitivi/preset.py
index 267807c..0fb8673 100644
--- a/pitivi/preset.py
+++ b/pitivi/preset.py
@@ -99,6 +99,7 @@ class PresetManager(object):
try:
fout = open(filepath, "w")
self.saveSection(fout, name)
+ self.presets[name]["filepath"] = filepath
except IOError:
# FIXME: this can happen in two cases: a permissions error,
# or an invalid filename (ex: gibberish). In the latter case
@@ -225,6 +226,7 @@ class PresetManager(object):
try:
fout = open(filepath, "w")
self.saveSection(fout, self.cur_preset)
+ self.presets[self.cur_preset]["filepath"] = filepath
except IOError:
# TODO: show an error infobar... but this should never happen,
# because the UI is supposed to disable the Save button
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]