diff options
| author | Eric Greveson <eric@greveson.co.uk> | 2013-07-01 21:27:23 +0000 |
|---|---|---|
| committer | Eric Greveson <eric@greveson.co.uk> | 2013-07-01 21:27:23 +0000 |
| commit | 2a53d44964f9105ce0f9c8725853150dc5360096 (patch) | |
| tree | 1a8204ef3e66edc5881fc7e051173adfb636ff29 /src/extension/effect.cpp | |
| parent | Added new files referenced in previous commit message (forgot to add!) (diff) | |
| download | inkscape-2a53d44964f9105ce0f9c8725853150dc5360096.tar.gz inkscape-2a53d44964f9105ce0f9c8725853150dc5360096.zip | |
Added error messages when attempting to use verbs requiring GUI in
console (--without-gui) mode.
(bzr r12387.1.3)
Diffstat (limited to 'src/extension/effect.cpp')
| -rw-r--r-- | src/extension/effect.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/extension/effect.cpp b/src/extension/effect.cpp index 22c5e4989..93b1bb91d 100644 --- a/src/extension/effect.cpp +++ b/src/extension/effect.cpp @@ -369,12 +369,15 @@ void Effect::EffectVerb::perform( SPAction *action, void * data ) { Inkscape::UI::View::View * current_view = sp_action_get_view(action); + if (current_view == NULL) { + show_gui_required_message(action); + return; + } // SPDocument * current_document = current_view->doc; Effect::EffectVerb * ev = reinterpret_cast<Effect::EffectVerb *>(data); Effect * effect = ev->_effect; if (effect == NULL) return; - if (current_view == NULL) return; if (ev->_showPrefs) { effect->prefs(current_view); |
