diff options
| author | Jon Phillips <jon@fabricatorz.com> | 2006-08-22 21:24:21 +0000 |
|---|---|---|
| committer | kidproto <kidproto@users.sourceforge.net> | 2006-08-22 21:24:21 +0000 |
| commit | a4cc625e3e8baed9c7c14f2c0ffa09144b6ed321 (patch) | |
| tree | 5f2251774ad19e497ceb49727cb1de51dc77eee4 /src/file.cpp | |
| parent | I added a key configuration for this command, changed a variable name and add... (diff) | |
| download | inkscape-a4cc625e3e8baed9c7c14f2c0ffa09144b6ed321.tar.gz inkscape-a4cc625e3e8baed9c7c14f2c0ffa09144b6ed321.zip | |
I added Johan's badass patch for save a copy with the features I requested.
Now it all works quite well! Great!
(bzr r1630)
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/file.cpp b/src/file.cpp index 4bb5763b6..de8ab2b5d 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -8,9 +8,10 @@ * Chema Celorio <chema@celorio.com> * bulia byak <buliabyak@users.sf.net> * + * Copyright (C) 2006 Johan Engelen <johan@shouraizou.nl> * Copyright (C) 1999-2005 Authors - * Copyright (C) 2001-2002 Ximian, Inc. * Copyright (C) 2004 David Turner + * Copyright (C) 2001-2002 Ximian, Inc. * * Released under GNU GPL, read the file 'COPYING' for more information */ @@ -600,15 +601,22 @@ sp_file_save_dialog(SPDocument *doc, bool is_copy) save_loc = save_loc_local; //# Show the SaveAs dialog + char const * dialog_title; + if (is_copy) { + dialog_title = (char const *) _("Select file to save a copy to"); + } else { + dialog_title = (char const *) _("Select file to save to"); + } if (!saveDialogInstance) saveDialogInstance = Inkscape::UI::Dialog::FileSaveDialog::create( save_loc, Inkscape::UI::Dialog::SVG_TYPES, - is_copy ? (char const *) _("Select file to save copy to") : (char const *) _("Select file to save to"), + (char const *) _("Select file to save to"), default_extension ); - + saveDialogInstance->change_title(dialog_title); + bool success = saveDialogInstance->show(); if (!success) return success; |
