{
setupUi(this);
- sort_ = false;
at_ref_ = false;
//FIXME: when/if we support the xr package for cross-reference
void GuiRef::sortToggled(bool on)
{
- sort_ = on;
redoRefs();
}
if (!typeAllowed())
typeCO->setCurrentIndex(0);
- sortCB->setChecked(sort_);
-
// insert buffer list
bufferCO->clear();
FileNameList const & buffers = theBufferList().fileNames();
refsLW->addItem(toqstr(*iter));
}
- if (sort_)
+ if (sortCB->isEnabled() && sortCB->isChecked())
refsLW->sortItems();
referenceED->setText(oldSelection);
///
InsetCommandParams params_;
- /// sort or not persistent state
- bool sort_;
/// went to a reference ?
bool at_ref_;
/// the last reference entered or examined