mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Remove the GuiRef::sort_ member. It was a relic of the old days.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28561 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
084de459fb
commit
90258a0dd3
@ -45,7 +45,6 @@ GuiRef::GuiRef(GuiView & lv)
|
|||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
sort_ = false;
|
|
||||||
at_ref_ = false;
|
at_ref_ = false;
|
||||||
|
|
||||||
//FIXME: when/if we support the xr package for cross-reference
|
//FIXME: when/if we support the xr package for cross-reference
|
||||||
@ -172,7 +171,6 @@ void GuiRef::refSelected(QListWidgetItem * sel)
|
|||||||
|
|
||||||
void GuiRef::sortToggled(bool on)
|
void GuiRef::sortToggled(bool on)
|
||||||
{
|
{
|
||||||
sort_ = on;
|
|
||||||
redoRefs();
|
redoRefs();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -225,8 +223,6 @@ void GuiRef::updateContents()
|
|||||||
if (!typeAllowed())
|
if (!typeAllowed())
|
||||||
typeCO->setCurrentIndex(0);
|
typeCO->setCurrentIndex(0);
|
||||||
|
|
||||||
sortCB->setChecked(sort_);
|
|
||||||
|
|
||||||
// insert buffer list
|
// insert buffer list
|
||||||
bufferCO->clear();
|
bufferCO->clear();
|
||||||
FileNameList const & buffers = theBufferList().fileNames();
|
FileNameList const & buffers = theBufferList().fileNames();
|
||||||
@ -330,7 +326,7 @@ void GuiRef::redoRefs()
|
|||||||
refsLW->addItem(toqstr(*iter));
|
refsLW->addItem(toqstr(*iter));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sort_)
|
if (sortCB->isEnabled() && sortCB->isChecked())
|
||||||
refsLW->sortItems();
|
refsLW->sortItems();
|
||||||
|
|
||||||
referenceED->setText(oldSelection);
|
referenceED->setText(oldSelection);
|
||||||
|
@ -86,8 +86,6 @@ private:
|
|||||||
///
|
///
|
||||||
InsetCommandParams params_;
|
InsetCommandParams params_;
|
||||||
|
|
||||||
/// sort or not persistent state
|
|
||||||
bool sort_;
|
|
||||||
/// went to a reference ?
|
/// went to a reference ?
|
||||||
bool at_ref_;
|
bool at_ref_;
|
||||||
/// the last reference entered or examined
|
/// the last reference entered or examined
|
||||||
|
Loading…
Reference in New Issue
Block a user