bugs 854, bug 855

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6016 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-02-02 02:11:28 +00:00
parent 1d1669c331
commit eb74119baf
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-02-02 John Levon <levon@movementarian.org>
* QPrefs.C: apply formats first (bug 854)
* QPrefsDialog.C: make sure a formats/converters item
is always selected (bug 855)
2003-01-31 Angus Leeming <leeming@lyx.org>
* Qt2Base.[Ch]: instantiate the isVisible() virtual method.

View File

@ -261,8 +261,8 @@ void QPrefs::apply()
controller().updateScreenFonts();
}
controller().setConverters(converters_);
controller().setFormats(formats_);
controller().setConverters(converters_);
QPrefColorsModule * colmod(dialog_->colorsModule);

View File

@ -357,6 +357,9 @@ void QPrefsDialog::updateConverters()
ccit->To->prettyname());
convertmod->convertersLB->insertItem(toqstr(name));
}
if (convertmod->convertersLB->currentItem() == -1)
convertmod->convertersLB->setCurrentItem(0);
}
@ -423,6 +426,9 @@ void QPrefsDialog::updateFormats()
for (; cit != end; ++cit) {
formatmod->formatsLB->insertItem(toqstr(cit->prettyname()));
}
if (formatmod->formatsLB->currentItem() == -1)
formatmod->formatsLB->setCurrentItem(0);
}