mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-08 18:19:42 +00:00
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:
parent
c14dad8d2b
commit
b2512f44d6
@ -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();
|
||||
|
@ -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:
|
||||
///
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -42,7 +42,7 @@ private:
|
||||
///
|
||||
void updateContents();
|
||||
///
|
||||
bool initialiseParams(std::string const &) { return true; }
|
||||
bool initialiseParams(std::string const &);
|
||||
///
|
||||
bool isBufferDependent() const { return true; }
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user