mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Fix automatic reconfiguration.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5450 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
10e10e8ff8
commit
e4707d7f88
@ -1,3 +1,7 @@
|
||||
2002-10-09 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* lyx_main.C (queryUserLyXDir): Fix automatic reconfiguration.
|
||||
|
||||
2002-10-17 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* lyxlength.C (inPixels): Fix hanfling of negative length.
|
||||
|
@ -577,13 +577,13 @@ void LyX::queryUserLyXDir(bool explicit_userdir)
|
||||
FileInfo fileInfo(user_lyxdir);
|
||||
if (fileInfo.isOK() && fileInfo.isDir()) {
|
||||
first_start = false;
|
||||
Path p(user_lyxdir);
|
||||
FileInfo script(configure_script);
|
||||
FileInfo defaults("lyxrc.defaults");
|
||||
if (!defaults.isOK()
|
||||
|| defaults.getModificationTime() < script.getModificationTime()) {
|
||||
FileInfo defaults(AddName(user_lyxdir, "lyxrc.defaults"));
|
||||
if (defaults.isOK() && script.isOK()
|
||||
&& defaults.getModificationTime() < script.getModificationTime()) {
|
||||
lyxerr << _("LyX: reconfiguring user directory")
|
||||
<< endl;
|
||||
Path p(user_lyxdir);
|
||||
::system(configure_script.c_str());
|
||||
lyxerr << "LyX: " << _("Done!") << endl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user