mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Fix bug #10882.
This commit is contained in:
parent
4d88ef32da
commit
4393388508
@ -491,8 +491,8 @@ void GuiRef::redoRefs()
|
|||||||
QString const cat = refsCategories.at(i);
|
QString const cat = refsCategories.at(i);
|
||||||
QTreeWidgetItem * item = new QTreeWidgetItem(refsTW);
|
QTreeWidgetItem * item = new QTreeWidgetItem(refsTW);
|
||||||
item->setText(0, cat);
|
item->setText(0, cat);
|
||||||
for (int i = 0; i < refsStrings.size(); ++i) {
|
for (int j = 0; j < refsStrings.size(); ++j) {
|
||||||
QString const ref = refsStrings.at(i);
|
QString const ref = refsStrings.at(j);
|
||||||
if ((ref.startsWith(cat + QString(":")))
|
if ((ref.startsWith(cat + QString(":")))
|
||||||
|| (cat == qt_("<No prefix>")
|
|| (cat == qt_("<No prefix>")
|
||||||
&& (!ref.mid(1).contains(":") || ref.left(1).contains(":")))) {
|
&& (!ref.mid(1).contains(":") || ref.left(1).contains(":")))) {
|
||||||
@ -609,9 +609,9 @@ void GuiRef::resetFilter()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool GuiRef::initialiseParams(std::string const & data)
|
bool GuiRef::initialiseParams(std::string const & sdata)
|
||||||
{
|
{
|
||||||
InsetCommand::string2params(data, params_);
|
InsetCommand::string2params(sdata, params_);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user