mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
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:
parent
5b0f3e2fb0
commit
ba8e16e6c4
@ -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>
|
||||
|
||||
* lyxlayout.[Ch]: change some vars from float to double
|
||||
|
@ -84,6 +84,9 @@ void LaTeXFeatures::getAvailable()
|
||||
if (!lex.isOK())
|
||||
return;
|
||||
|
||||
// Make sure that we are clean
|
||||
packages_.clear();
|
||||
|
||||
bool finished = false;
|
||||
// Parse config-file
|
||||
while (lex.isOK() && !finished) {
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "debug.h"
|
||||
#include "gettext.h"
|
||||
#include "lastfiles.h"
|
||||
#include "LaTeXFeatures.h"
|
||||
#include "lyx_main.h"
|
||||
#include "lyxlayout.h"
|
||||
#include "lyxrc.h"
|
||||
@ -449,6 +450,8 @@ void Reconfigure(BufferView * bv)
|
||||
p.pop();
|
||||
bv->owner()->message(_("Reloading configuration..."));
|
||||
lyxrc.read(LibFileSearch(string(), "lyxrc.defaults"));
|
||||
// Re-read packages.lst
|
||||
LaTeXFeatures::getAvailable();
|
||||
|
||||
Alert::information(_("System reconfigured"),
|
||||
_("The system has been reconfigured.\n"
|
||||
|
Loading…
Reference in New Issue
Block a user