From a4cc625e3e8baed9c7c14f2c0ffa09144b6ed321 Mon Sep 17 00:00:00 2001 From: Jon Phillips Date: Tue, 22 Aug 2006 21:24:21 +0000 Subject: I added Johan's badass patch for save a copy with the features I requested. Now it all works quite well! Great! (bzr r1630) --- src/file.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/file.cpp') 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 * bulia byak * + * Copyright (C) 2006 Johan Engelen * 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; -- cgit v1.2.3