spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 5e25c09746f3318209f582c594366950fc78980b
parent 7b8e7ffae1ef4249494a3b4988e056b0d41f6f5a
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Sat, 15 May 2010 12:18:37 +1000

Fix suggested image file name

Diffstat:
Msrc/spek-window.vala | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/spek-window.vala b/src/spek-window.vala @@ -107,7 +107,7 @@ namespace Spek { chooser.set_current_folder (cur_dir); // Suggested name is <file_name>.png - var file_name = Path.get_basename (spectrogram.file_name); + var file_name = Path.get_basename (spectrogram.file_name ?? _("Untitled")); file_name += ".png"; chooser.set_current_name (file_name); @@ -115,6 +115,7 @@ namespace Spek { filter.add_pattern ("*.png"); filter.set_name (_("PNG Images")); chooser.add_filter (filter); + chooser.set_filter (filter); if (chooser.run () == ResponseType.ACCEPT) { file_name = chooser.get_filename (); cur_dir = Path.get_dirname (file_name);