diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/shortcuts.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shortcuts.cpp b/src/shortcuts.cpp index c5ec7ed50..52248b81f 100644 --- a/src/shortcuts.cpp +++ b/src/shortcuts.cpp @@ -50,7 +50,7 @@ using namespace Inkscape; using namespace Inkscape::IO::Resource; -static bool try_shortcuts_file(char const *filename); +static bool try_shortcuts_file(char const *filename, bool const is_user_set=false); static void read_shortcuts_file(char const *filename, bool const is_user_set=false); unsigned int sp_shortcut_get_key(unsigned int const shortcut); @@ -107,15 +107,15 @@ void sp_shortcut_init() } // load shortcuts adjusted by user - try_shortcuts_file(get_path(USER, KEYS, "default.xml")); + try_shortcuts_file(get_path(USER, KEYS, "default.xml"), true); } -static bool try_shortcuts_file(char const *filename) { +static bool try_shortcuts_file(char const *filename, bool const is_user_set) { using Inkscape::IO::file_test; /* ah, if only we had an exception to catch... (permission, forgiveness) */ if (file_test(filename, G_FILE_TEST_EXISTS)) { - read_shortcuts_file(filename, true); + read_shortcuts_file(filename, is_user_set); return true; } |
