]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
Ensure the focus is returned to the editing area after a dispatch.
[lyx.git] / src / factory.cpp
index 2c330c33d9091e930e5838782f334a14a75ed3d7..c49da693105cac8270353242499c3962a369edd3 100644 (file)
@@ -64,7 +64,7 @@
 #include "support/lstrings.h"
 #include "support/ExceptionMessage.h"
 
-#include "support/assert.h"
+#include "support/lassert.h"
 
 #include <sstream>
 
@@ -210,8 +210,11 @@ Inset * createInsetHelper(Buffer & buf, FuncRequest const & cmd)
                case LFUN_ENVIRONMENT_INSERT:
                        return new InsetEnvironment(buf, cmd.argument());
 
-               case LFUN_INFO_INSERT:
-                       return new InsetInfo(buf, to_utf8(cmd.argument()));
+               case LFUN_INFO_INSERT: {
+                       InsetInfo * inset = new InsetInfo(buf, to_utf8(cmd.argument()));
+                       inset->updateInfo();
+                       return inset;
+               }
 
                case LFUN_INSET_INSERT: {
                        string const name = cmd.getArg(0);