From 0b907eefa29d0435ec8d9ec0c616e903df24c1b1 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 1 Apr 2007 01:18:40 +0000 Subject: [PATCH] allow easy access to templates profile dir from save dialog --- src/file.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.30.2