A small but very annoying bug with natbib/qt: every time a new entry is added to the "selected" browser, the style choice is reset to the first combo item. The fix is to store the position. This is a backport of a fix already in 1.4
Please consider applying. Thanks, Juergen.
Index: src/frontends/qt2/ChangeLog =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/ChangeLog,v retrieving revision 1.389.2.31 diff -u -r1.389.2.31 ChangeLog --- src/frontends/qt2/ChangeLog 2003/07/15 15:58:17 1.389.2.31 +++ src/frontends/qt2/ChangeLog 2003/07/16 09:46:23 @@ -1,3 +1,7 @@ +2003-07-16 Juergen Spitzmueller <[EMAIL PROTECTED]> + + * QCitation.C: don't reset natbib styleCO when inserting new entry. + 2003-07-15 John Levon <[EMAIL PROTECTED]> * QMathDialog.C: use widget(i) not visibleWidget() due to Index: src/frontends/qt2/QCitation.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/QCitation.C,v retrieving revision 1.13 diff -u -r1.13 QCitation.C --- src/frontends/qt2/QCitation.C 2002/12/17 20:37:10 1.13 +++ src/frontends/qt2/QCitation.C 2003/07/16 09:46:23 @@ -112,6 +112,8 @@ if (!citekeys.empty()) key = citekeys[0]; + int const orig = dialog_->citationStyleCO->currentItem(); + dialog_->citationStyleCO->clear(); vector<string> const & sty = controller().getCiteStrings(key); @@ -119,6 +121,9 @@ it != sty.end(); ++it) { dialog_->citationStyleCO->insertItem(toqstr(*it)); } + + if (orig != -1 && orig < dialog_->citationStyleCO->count()) + dialog_->citationStyleCO->setCurrentItem(orig); }