From: John Spray Date: Tue, 7 Feb 2006 22:20:37 +0000 (+0000) Subject: Fix sensitivity in GBibtex X-Git-Tag: 1.6.10~13624 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ec195eb2540e82ad037b92f5367b59b9929001c4;p=features.git Fix sensitivity in GBibtex git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10823 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/gtk/GBibtex.C b/src/frontends/gtk/GBibtex.C index 4617a075e5..a96f510e48 100644 --- a/src/frontends/gtk/GBibtex.C +++ b/src/frontends/gtk/GBibtex.C @@ -127,6 +127,8 @@ void GBibtex::update() else toccheck_->set_active(false); + toccheck_->set_sensitive(!bibtopic); + string btprint(controller().params().getSecOptions()); int btp = 0; if (btprint == "btPrintNotCited") @@ -182,11 +184,12 @@ void GBibtex::apply() string const bibstyle = stylecombo_.get_active_text(); bool const bibtotoc = toccheck_->get_active(); + bool const bibtopic = controller().usingBibtopic(); - if (bibtotoc && (!bibstyle.empty())) { + if (!bibtopic && bibtotoc && (!bibstyle.empty())) { // both bibtotoc and style controller().params().setOptions("bibtotoc," + bibstyle); - } else if (bibtotoc) { + } else if (!bibtopic && bibtotoc) { // bibtotoc and no style controller().params().setOptions("bibtotoc"); } else { @@ -214,7 +217,7 @@ void GBibtex::apply() break; } - if (!controller().usingBibtopic()) + if (!bibtopic) controller().params().setSecOptions(""); }