]> git.lyx.org Git - lyx.git/commitdiff
small fix from Herbert
authorJohn Levon <levon@movementarian.org>
Wed, 13 Nov 2002 23:46:55 +0000 (23:46 +0000)
committerJohn Levon <levon@movementarian.org>
Wed, 13 Nov 2002 23:46:55 +0000 (23:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5630 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt2/ChangeLog
src/frontends/qt2/QBibtex.C

index 0fc5e5c923cabc6143df7b356482d798c2be1cd0..55a4969663618abf034a6f04b7da5babe76c1c93 100644 (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
index 35debd01e49696a4fe1457e82f425ad64a9bfc0b..3169a1490d5b94fda82a6a9d8c69f467b63c328f 100644 (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;
 }