]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrc.C
More ascii-export fixes and when making copy of single tabular cells now the
[lyx.git] / src / lyxrc.C
index d8b811cfd2ec0f1e28f10ad06c06cc66e22ea8c5..857c2d96f0ad7c4a75b050978da802a236109e21 100644 (file)
 #include "lyxrc.h"
 #include "kbmap.h"
 #include "LyXAction.h"
-#include "lyxserver.h"
 #include "lyx_main.h"
 #include "intl.h"
-#include "tex-strings.h"
 #include "support/path.h"
 #include "support/filetools.h"
 #include "lyxtext.h"
@@ -738,8 +736,8 @@ int LyXRC::read(string const & filename)
                                               << cmd << "' Action `"
                                               << action << '\'' << endl;
                                }
-                               res = toplevel_keymap->bind(seq, action);
-                               if (res != 0
+                               res = toplevel_keymap->bind(seq, kb_action(action));
+                               if (res != string::npos
                                    && lyxerr.debugging(Debug::LYXRC)) {
                                        lexrc.printError(
                                                "RC_BIND: "