fix "change tracker microbug" reported by Helge

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10117 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-07-01 17:19:42 +00:00
parent 78145de0a7
commit 9e3ae6b327
3 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2005-07-01 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QChanges.[Ch] (update_contents): move to next change on update.
* QChanges.C: make some strings translatable.
2005-06-21 Jean-Marc Lasgouttes <lasgouttes@lyx.org> 2005-06-21 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* qfont_loader.h (USE_LYX_FONTCACHE): change order of #includes so * qfont_loader.h (USE_LYX_FONTCACHE): change order of #includes so

View File

@ -45,6 +45,12 @@ void QChanges::build_dialog()
} }
void QChanges::update_contents()
{
next();
}
void QChanges::next() void QChanges::next()
{ {
controller().find(); controller().find();
@ -54,9 +60,9 @@ void QChanges::next()
string date(controller().getChangeDate()); string date(controller().getChangeDate());
if (!author.empty()) if (!author.empty())
text += "Change by " + author + "\n\n"; text += _("Change by ") + author + "\n\n";
if (!date.empty()) if (!date.empty())
text += "Change made at " + date + "\n"; text += _("Change made at ") + date + "\n";
dialog_->changeTV->setText(toqstr(text)); dialog_->changeTV->setText(toqstr(text));
} }

View File

@ -38,7 +38,7 @@ private:
/// Apply changes /// Apply changes
virtual void apply() {}; virtual void apply() {};
/// update /// update
virtual void update_contents() {}; virtual void update_contents();
/// build the dialog /// build the dialog
virtual void build_dialog(); virtual void build_dialog();
}; };