[pitivi] Properly get the current filter object when saving a snapshot
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Properly get the current filter object when saving a snapshot
- Date: Tue, 11 Sep 2012 01:01:45 +0000 (UTC)
commit 418c44ea99399ff7cac26a85bf5ce818cdfd41a4
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Mon Sep 10 21:00:21 2012 -0400
Properly get the current filter object when saving a snapshot
The previous approach would always return the lastly created
filter, which made it always use "PNG image" regardless of
the user's choice
pitivi/timeline/timeline.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 2af98d7..048ac3f 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1331,7 +1331,7 @@ class Timeline(Gtk.Table, Loggable, Zoomable):
chooser.add_filter(filt)
response = chooser.run()
if response == Gtk.ResponseType.OK:
- chosen_format = formats.get(filt.get_name())
+ chosen_format = formats.get(chooser.get_filter().get_name())
chosen_ext = chosen_format[1][0]
chosen_mime = chosen_format[0]
uri = join(chooser.get_current_folder(), chooser.get_filename())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]