This commit is contained in:
Richard Heck 2018-02-22 00:20:19 -05:00
parent 4d88ef32da
commit 4393388508

View File

@ -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;
} }