Re-read packages list after reconfigure

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9540 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-01-28 14:50:23 +00:00
parent 5b0f3e2fb0
commit ba8e16e6c4
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-01-28 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* LaTeXFeatures.C (getAvailable): always clear packages_ list.
* lyx_cb.C (Reconfigure): call LaTeXFeatures::getAvailable()
2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net> 2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net>
* lyxlayout.[Ch]: change some vars from float to double * lyxlayout.[Ch]: change some vars from float to double

View File

@ -84,6 +84,9 @@ void LaTeXFeatures::getAvailable()
if (!lex.isOK()) if (!lex.isOK())
return; return;
// Make sure that we are clean
packages_.clear();
bool finished = false; bool finished = false;
// Parse config-file // Parse config-file
while (lex.isOK() && !finished) { while (lex.isOK() && !finished) {

View File

@ -23,6 +23,7 @@
#include "debug.h" #include "debug.h"
#include "gettext.h" #include "gettext.h"
#include "lastfiles.h" #include "lastfiles.h"
#include "LaTeXFeatures.h"
#include "lyx_main.h" #include "lyx_main.h"
#include "lyxlayout.h" #include "lyxlayout.h"
#include "lyxrc.h" #include "lyxrc.h"
@ -449,6 +450,8 @@ void Reconfigure(BufferView * bv)
p.pop(); p.pop();
bv->owner()->message(_("Reloading configuration...")); bv->owner()->message(_("Reloading configuration..."));
lyxrc.read(LibFileSearch(string(), "lyxrc.defaults")); lyxrc.read(LibFileSearch(string(), "lyxrc.defaults"));
// Re-read packages.lst
LaTeXFeatures::getAvailable();
Alert::information(_("System reconfigured"), Alert::information(_("System reconfigured"),
_("The system has been reconfigured.\n" _("The system has been reconfigured.\n"