]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetExternal.cpp
Move LFUN_GRAPHICS_EDIT and LFUN_EXTERNAL_EDIT from LyXFunc.cpp to BufferView.cpp...
[features.git] / src / insets / InsetExternal.cpp
index 79d47ca8a519aa2b3ee085b0792cc406c0799c17..fcfef733c8a00522f2ad306e7f830fa0444aac7d 100644 (file)
@@ -452,8 +452,9 @@ void InsetExternal::doDispatch(Cursor & cur, FuncRequest & cmd)
        switch (cmd.action) {
 
        case LFUN_EXTERNAL_EDIT: {
-               InsetExternalParams p;
-               InsetExternalMailer::string2params(to_utf8(cmd.argument()), buffer(), p);
+               InsetExternalParams p =  params();
+               if (!cmd.argument().empty())
+                       InsetExternalMailer::string2params(to_utf8(cmd.argument()), buffer(), p);
                external::editExternal(p, buffer());
                break;
        }