small fix from Herbert

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5630 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-11-13 23:46:55 +00:00
parent b0babedcb7
commit 1111fcf683
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-11-13 Herbert Voss <voss@perce.de>
* QBibtex.C: (apply, isValid) small changes
2002-11-13 John Levon <levon@movementarian.org>
* all pref files: make the stack work

View File

@ -136,7 +136,9 @@ void QBibtex::apply()
// bibtotoc and no style
controller().params().setOptions("bibtotoc");
} else {
// only style. An empty one is valid!
// only style. An empty one is valid, because some
// documentclasses have an own \bibliographystyle{}
// command!
controller().params().setOptions(bibstyle);
}
}
@ -144,6 +146,5 @@ void QBibtex::apply()
bool QBibtex::isValid()
{
return dialog_->databaseLB->count() != 0 &&
!string(dialog_->styleCB->text(0)).empty();
return dialog_->databaseLB->count() != 0;
}