mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-24 01:01:57 +00:00
Fix bug #7557 (TeX engine cannot be switched on Windows)
As a by-product, make actOnUpdatedPrefs() actually act on updated preferences. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38747 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b3a983c66f
commit
e4c2d74d56
@ -1612,8 +1612,9 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
|
|||||||
if (tag != RC_LAST)
|
if (tag != RC_LAST)
|
||||||
break;
|
break;
|
||||||
case RC_TEX_EXPECTS_WINDOWS_PATHS:
|
case RC_TEX_EXPECTS_WINDOWS_PATHS:
|
||||||
if (ignore_system_lyxrc ||
|
// Don't write this setting to the preferences file,
|
||||||
windows_style_tex_paths != system_lyxrc.windows_style_tex_paths) {
|
// but allow temporary changes (bug 7557).
|
||||||
|
if (ignore_system_lyxrc) {
|
||||||
os << "\\tex_expects_windows_paths "
|
os << "\\tex_expects_windows_paths "
|
||||||
<< convert<string>(windows_style_tex_paths) << '\n';
|
<< convert<string>(windows_style_tex_paths) << '\n';
|
||||||
}
|
}
|
||||||
@ -2900,6 +2901,7 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new)
|
|||||||
// if we forget an element.
|
// if we forget an element.
|
||||||
LyXRC::LyXRCTags tag = LyXRC::RC_LAST;
|
LyXRC::LyXRCTags tag = LyXRC::RC_LAST;
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
|
case LyXRC::RC_LAST:
|
||||||
case LyXRC::RC_ACCEPT_COMPOUND:
|
case LyXRC::RC_ACCEPT_COMPOUND:
|
||||||
case LyXRC::RC_ALT_LANG:
|
case LyXRC::RC_ALT_LANG:
|
||||||
case LyXRC::RC_PLAINTEXT_LINELEN:
|
case LyXRC::RC_PLAINTEXT_LINELEN:
|
||||||
@ -2953,9 +2955,6 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new)
|
|||||||
case LyXRC::RC_GROUP_LAYOUTS:
|
case LyXRC::RC_GROUP_LAYOUTS:
|
||||||
case LyXRC::RC_HUNSPELLDIR_PATH:
|
case LyXRC::RC_HUNSPELLDIR_PATH:
|
||||||
case LyXRC::RC_ICON_SET:
|
case LyXRC::RC_ICON_SET:
|
||||||
if (lyxrc_orig.icon_set != lyxrc_new.icon_set) {
|
|
||||||
lyxrc.icon_set = lyxrc_new.icon_set;
|
|
||||||
}
|
|
||||||
case LyXRC::RC_INDEX_ALTERNATIVES:
|
case LyXRC::RC_INDEX_ALTERNATIVES:
|
||||||
case LyXRC::RC_INDEX_COMMAND:
|
case LyXRC::RC_INDEX_COMMAND:
|
||||||
case LyXRC::RC_JBIBTEX_COMMAND:
|
case LyXRC::RC_JBIBTEX_COMMAND:
|
||||||
@ -2984,7 +2983,7 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new)
|
|||||||
case LyXRC::RC_PARAGRAPH_MARKERS:
|
case LyXRC::RC_PARAGRAPH_MARKERS:
|
||||||
case LyXRC::RC_PATH_PREFIX:
|
case LyXRC::RC_PATH_PREFIX:
|
||||||
if (lyxrc_orig.path_prefix != lyxrc_new.path_prefix) {
|
if (lyxrc_orig.path_prefix != lyxrc_new.path_prefix) {
|
||||||
prependEnvPath("PATH", lyxrc.path_prefix);
|
prependEnvPath("PATH", lyxrc_new.path_prefix);
|
||||||
}
|
}
|
||||||
case LyXRC::RC_PREVIEW:
|
case LyXRC::RC_PREVIEW:
|
||||||
case LyXRC::RC_PREVIEW_HASHED_LABELS:
|
case LyXRC::RC_PREVIEW_HASHED_LABELS:
|
||||||
@ -3036,9 +3035,6 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new)
|
|||||||
os::windows_style_tex_paths(lyxrc_new.windows_style_tex_paths);
|
os::windows_style_tex_paths(lyxrc_new.windows_style_tex_paths);
|
||||||
}
|
}
|
||||||
case LyXRC::RC_TEXINPUTS_PREFIX:
|
case LyXRC::RC_TEXINPUTS_PREFIX:
|
||||||
if (lyxrc_orig.texinputs_prefix != lyxrc_new.texinputs_prefix) {
|
|
||||||
lyxrc.texinputs_prefix = lyxrc_new.texinputs_prefix;
|
|
||||||
}
|
|
||||||
case LyXRC::RC_THESAURUSDIRPATH:
|
case LyXRC::RC_THESAURUSDIRPATH:
|
||||||
case LyXRC::RC_UIFILE:
|
case LyXRC::RC_UIFILE:
|
||||||
case LyXRC::RC_USER_EMAIL:
|
case LyXRC::RC_USER_EMAIL:
|
||||||
@ -3066,7 +3062,6 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new)
|
|||||||
case LyXRC::RC_DEFAULT_DECIMAL_POINT:
|
case LyXRC::RC_DEFAULT_DECIMAL_POINT:
|
||||||
case LyXRC::RC_SCROLL_WHEEL_ZOOM:
|
case LyXRC::RC_SCROLL_WHEEL_ZOOM:
|
||||||
case LyXRC::RC_CURSOR_WIDTH:
|
case LyXRC::RC_CURSOR_WIDTH:
|
||||||
case LyXRC::RC_LAST:
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -323,10 +323,7 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string/>
|
<string>Select whether LyX should output Windows or Cygwin style
paths to LaTeX files. Don't change the default unless the
TeX engine was not correctly detected at configure time.
Warning: Your changes here will not be saved.</string>
|
||||||
</property>
|
|
||||||
<property name="whatsThis">
|
|
||||||
<string>Select if LyX should output Windows-style paths rather than Posix-style paths to LaTeX files. Useful if you're using the native Windows MikTeX rather than the Cygwin teTeX.</string>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="layoutDirection">
|
<property name="layoutDirection">
|
||||||
<enum>Qt::LeftToRight</enum>
|
<enum>Qt::LeftToRight</enum>
|
||||||
|
@ -42,6 +42,9 @@ What's new
|
|||||||
|
|
||||||
- Updated French, German, Japanese, and Portuguese User Interface Localization.
|
- Updated French, German, Japanese, and Portuguese User Interface Localization.
|
||||||
|
|
||||||
|
- Now it is not necessary to restart LyX after changing the default document
|
||||||
|
directory and/or the PATH prefix in the preferences for them to take effect.
|
||||||
|
|
||||||
|
|
||||||
* DOCUMENTATION AND LOCALIZATION
|
* DOCUMENTATION AND LOCALIZATION
|
||||||
|
|
||||||
@ -80,6 +83,9 @@ What's new
|
|||||||
a document containing aligned and other multi-cell environments
|
a document containing aligned and other multi-cell environments
|
||||||
(bug ##7549).
|
(bug ##7549).
|
||||||
|
|
||||||
|
- On Windows, allow to automatically switch TeX engines without the need
|
||||||
|
of manually saving the preferences after reconfiguring (bug 7557).
|
||||||
|
|
||||||
|
|
||||||
* USER INTERFACE
|
* USER INTERFACE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user