diff options
| author | Jabiertxo Arraiza Cenoz <jtx@jtx.markerlab.es> | 2018-05-04 14:37:02 +0000 |
|---|---|---|
| committer | Jabiertxo Arraiza Cenoz <jtx@jtx.markerlab.es> | 2018-05-10 16:46:08 +0000 |
| commit | 21abf74176d6a2db53a274f13421b84ee17714e7 (patch) | |
| tree | 591bfa96068a2c6b5b02224f49023d6ce3a5b3f4 /src/verbs.cpp | |
| parent | Improve sort handling in XML (diff) | |
| download | inkscape-21abf74176d6a2db53a274f13421b84ee17714e7.tar.gz inkscape-21abf74176d6a2db53a274f13421b84ee17714e7.zip | |
Allow link a SVG as image
Diffstat (limited to 'src/verbs.cpp')
| -rw-r--r-- | src/verbs.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp index 0c51c5314..4ac94ec1b 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -877,7 +877,7 @@ void FileVerb::perform(SPAction *action, void *data) if (handled) { return; } - + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); g_return_if_fail(ensure_desktop_valid(action)); SPDesktop *desktop = sp_action_get_desktop(action); @@ -889,6 +889,7 @@ void FileVerb::perform(SPAction *action, void *data) sp_file_new_default(); break; case SP_VERB_FILE_OPEN: + prefs->setString("/options/openmethod/value", "open"); sp_file_open_dialog(*parent, NULL, NULL); break; case SP_VERB_FILE_REVERT: @@ -910,12 +911,14 @@ void FileVerb::perform(SPAction *action, void *data) sp_file_print(*parent); break; case SP_VERB_FILE_IMPORT: + prefs->setString("/options/openmethod/value","import"); sp_file_import(*parent); break; // case SP_VERB_FILE_EXPORT: // sp_file_export_dialog(*parent); // break; case SP_VERB_FILE_IMPORT_FROM_OCAL: + prefs->setString("/options/openmethod/value", "ocal"); sp_file_import_from_ocal(*parent); break; // case SP_VERB_FILE_EXPORT_TO_OCAL: |
