]> git.lyx.org Git - features.git/commitdiff
Glitch in LFUN
authorPavel Sanda <sanda@lyx.org>
Mon, 15 Feb 2010 09:05:16 +0000 (09:05 +0000)
committerPavel Sanda <sanda@lyx.org>
Mon, 15 Feb 2010 09:05:16 +0000 (09:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33476 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 5cb73804d4cb2e1ffa2f5fe645a9f32444513247..eeb8b47aa88b104cb3ddb4eb754626af1af8e64f 100644 (file)
@@ -2591,7 +2591,7 @@ void GuiView::dispatchVC(FuncRequest const & cmd)
                        f2 = buffer->absFileName();
                } else {
                        string rev2 = cmd.getArg(1);
-                       if (rev2.empty() || !isStrInt(rev2))
+                       if (rev2.empty())
                                break;
                        // f2
                        if (!buffer->lyxvc().prepareFileRevision(rev2, f2))
@@ -2600,6 +2600,7 @@ void GuiView::dispatchVC(FuncRequest const & cmd)
                // FIXME We need to call comparison feature here
                // I'm not sure whether with or without dialog.
                // (Gui)Compare::compare(f1, f2);
+               break;
        }
 
        default:
@@ -3127,6 +3128,7 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                case LFUN_VC_REVERT:
                case LFUN_VC_UNDO_LAST:
                case LFUN_VC_COMMAND:
+               case LFUN_VC_COMPARE:
                        dispatchVC(cmd);
                        break;