+2005-12-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * lyxfunc.C (dispatch): do not call getStatus again to determine
+ whether a lfun is disabled (bug 2172).
+
2005-12-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* cursor.C (macroModeClose): set the cursor inside the new math
view()->update(Update::FitCursor);
// if we executed a mutating lfun, mark the buffer as dirty
- // FIXME: Why not use flag.enabled() but call getStatus again?
- if (getStatus(cmd).enabled()
- && !lyxaction.funcHasFlag(cmd.action, LyXAction::NoBuffer)
- && !lyxaction.funcHasFlag(cmd.action, LyXAction::ReadOnly))
+ if (flag.enabled()
+ && !lyxaction.funcHasFlag(cmd.action, LyXAction::NoBuffer)
+ && !lyxaction.funcHasFlag(cmd.action, LyXAction::ReadOnly))
view()->buffer()->markDirty();
}