X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fvc-backend.C;h=4b9218348e4d26d78f5ee36c457250cf04e4d1cd;hb=2e57f2ff0ae7cd4a6efbf634ffe6d2f4379d9cfc;hp=8a9fa6bd2a21482b30848daa90014b33d93f7ce3;hpb=53274e31ec1cc715c0b48921ee67818790c2e99a;p=lyx.git diff --git a/src/vc-backend.C b/src/vc-backend.C index 8a9fa6bd2a..4b9218348e 100644 --- a/src/vc-backend.C +++ b/src/vc-backend.C @@ -1,13 +1,8 @@ #include -#ifdef __GNUG__ -#pragma implementation -#endif - #include "vc-backend.h" #include "debug.h" #include "buffer.h" -#include "BufferView.h" #include "frontends/LyXView.h" #include "funcrequest.h" @@ -21,6 +16,8 @@ #include +using namespace lyx::support; + #ifndef CXX_GLOBAL_CSTD using std::asctime; using std::gmtime; @@ -165,7 +162,6 @@ void RCS::registrer(string const & msg) cmd += OnlyFilename(owner_->fileName()); cmd += '"'; doVCCommand(cmd, owner_->filePath()); - owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD)); } @@ -174,7 +170,6 @@ void RCS::checkIn(string const & msg) doVCCommand("ci -q -u -m\"" + msg + "\" \"" + OnlyFilename(owner_->fileName()) + '"', owner_->filePath()); - owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD)); } @@ -184,7 +179,6 @@ void RCS::checkOut() doVCCommand("co -q -l \"" + OnlyFilename(owner_->fileName()) + '"', owner_->filePath()); - owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD)); } @@ -195,7 +189,6 @@ void RCS::revert() owner_->filePath()); // We ignore changes and just reload! owner_->markClean(); - owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD)); } @@ -304,7 +297,6 @@ void CVS::registrer(string const & msg) doVCCommand("cvs -q add -m \"" + msg + "\" \"" + OnlyFilename(owner_->fileName()) + '"', owner_->filePath()); - owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD)); } @@ -313,7 +305,6 @@ void CVS::checkIn(string const & msg) doVCCommand("cvs -q commit -m \"" + msg + "\" \"" + OnlyFilename(owner_->fileName()) + '"', owner_->filePath()); - owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD)); } @@ -333,7 +324,6 @@ void CVS::revert() doVCCommand("rm -f \"" + fil + "\"; cvs update \"" + fil + '"', owner_->filePath()); owner_->markClean(); - owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD)); }