These things need to be updated for each dialog opening

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35308 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-09-07 11:29:05 +00:00
parent c14dad8d2b
commit b2512f44d6
4 changed files with 8 additions and 4 deletions

View File

@ -282,7 +282,7 @@ string const LyXVC::getLogFile() const
}
std::string LyXVC::revisionInfo(RevisionInfo const info)
string LyXVC::revisionInfo(RevisionInfo const info) const
{
if (!vcs)
return string();

View File

@ -157,7 +157,7 @@ public:
* Its safe to call it regardless VCS is in usage or this
* info is (un)available. Returns empty string in such a case.
*/
std::string revisionInfo(RevisionInfo const info);
std::string revisionInfo(RevisionInfo const info) const;
private:
///

View File

@ -42,8 +42,11 @@ GuiCompareHistory::GuiCompareHistory(GuiView & lv)
connect(revbackRB, SIGNAL(clicked()), this, SLOT(selectRevback()));
connect(betweenrevRB, SIGNAL(clicked()), this, SLOT(selectBetweenrev()));
}
string revstring = lv.currentBufferView()->buffer().lyxvc().revisionInfo(LyXVC::File);
bool GuiCompareHistory::initialiseParams(std::string const &)
{
string revstring = lyxview().currentBufferView()->buffer().lyxvc().revisionInfo(LyXVC::File);
int rev=0;
if (prefixIs(revstring, "r"))
revstring = ltrim(revstring,"r");
@ -61,6 +64,7 @@ GuiCompareHistory::GuiCompareHistory(GuiView & lv)
//bc().setOK(okPB);
//bc().setCancel(cancelPB);
enableControls();
return true;
}

View File

@ -42,7 +42,7 @@ private:
///
void updateContents();
///
bool initialiseParams(std::string const &) { return true; }
bool initialiseParams(std::string const &);
///
bool isBufferDependent() const { return true; }
///