From c30a82d94d6fd65c7888ba2c0afd91d1086db370 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Mon, 15 Feb 2010 09:05:16 +0000 Subject: [PATCH] Glitch in LFUN git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33476 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 5cb73804d4..eeb8b47aa8 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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;