From: buliabyak Date: Sun, 1 Apr 2007 01:18:40 +0000 (+0000) Subject: allow easy access to templates profile dir from save dialog X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0b907eefa29d0435ec8d9ec0c616e903df24c1b1;p=inkscape.git allow easy access to templates profile dir from save dialog --- diff --git a/src/file.cpp b/src/file.cpp index efbada332..0a81069d9 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -621,6 +621,11 @@ sp_file_save_dialog(SPDocument *doc, bool is_copy) saveDialog->change_title(dialog_title); saveDialog->setSelectionType(extension); + // allow easy access to the user's own templates folder + gchar *templates = profile_path ("templates"); + dynamic_cast(saveDialog)->add_shortcut_folder(templates); + g_free (templates); + bool success = saveDialog->show(); if (!success) { delete saveDialog;