Rename a routine.

This commit is contained in:
Richard Heck 2014-02-17 15:47:22 -05:00
parent 7f82b8391a
commit 0a5b33bcad
2 changed files with 7 additions and 7 deletions

View File

@ -63,12 +63,12 @@ public:
void forceBufferUpdate() { need_buf_update_ = true; }
/// Clear the flag indicating we need an update
void clearBufferUpdate() { need_buf_update_ = false; }
///
/// Do we need to display a message in the status bar?
bool needMessageUpdate() const { return need_msg_update_; }
/// Force the buffer to be updated
/// Force the message to be displayed
void forceMessageUpdate() { need_msg_update_ = true; }
/// Clear the flag indicating we need an update
void suppressMessageUpdate() { need_msg_update_ = false; }
/// Clear the flag indicating we need to display the message
void clearMessageUpdate() { need_msg_update_ = false; }
private:
/// was the event fully dispatched?

View File

@ -2889,7 +2889,7 @@ void GuiView::dispatchVC(FuncRequest const & cmd, DispatchResult & dr)
if (!buffer->lyxvc().inUse()) {
if (buffer->lyxvc().registrer()) {
reloadBuffer(*buffer);
dr.suppressMessageUpdate();
dr.clearMessageUpdate();
}
}
break;
@ -2969,7 +2969,7 @@ void GuiView::dispatchVC(FuncRequest const & cmd, DispatchResult & dr)
LASSERT(buffer, return);
if (buffer->lyxvc().revert()) {
reloadBuffer(*buffer);
dr.suppressMessageUpdate();
dr.clearMessageUpdate();
}
break;
@ -2977,7 +2977,7 @@ void GuiView::dispatchVC(FuncRequest const & cmd, DispatchResult & dr)
LASSERT(buffer, return);
buffer->lyxvc().undoLast();
reloadBuffer(*buffer);
dr.suppressMessageUpdate();
dr.clearMessageUpdate();
break;
case LFUN_VC_REPO_UPDATE: