parent
eb978ee192
commit
73a5aafba4
|
@ -121,8 +121,8 @@ void LibraryDialog::openCfg()
|
||||||
mUi->functions->clear();
|
mUi->functions->clear();
|
||||||
for (CppcheckLibraryData::Function &function : mData.functions) {
|
for (CppcheckLibraryData::Function &function : mData.functions) {
|
||||||
mUi->functions->addItem(new FunctionListItem(mUi->functions,
|
mUi->functions->addItem(new FunctionListItem(mUi->functions,
|
||||||
&function,
|
&function,
|
||||||
false));
|
false));
|
||||||
}
|
}
|
||||||
mUi->sortFunctions->setEnabled(!mData.functions.empty());
|
mUi->sortFunctions->setEnabled(!mData.functions.empty());
|
||||||
mUi->filter->setEnabled(!mData.functions.empty());
|
mUi->filter->setEnabled(!mData.functions.empty());
|
||||||
|
@ -262,8 +262,8 @@ void LibraryDialog::sortFunctions(bool sort)
|
||||||
mUi->functions->clear();
|
mUi->functions->clear();
|
||||||
for (CppcheckLibraryData::Function &function : mData.functions) {
|
for (CppcheckLibraryData::Function &function : mData.functions) {
|
||||||
mUi->functions->addItem(new FunctionListItem(mUi->functions,
|
mUi->functions->addItem(new FunctionListItem(mUi->functions,
|
||||||
&function,
|
&function,
|
||||||
selfunction == &function));
|
selfunction == &function));
|
||||||
}
|
}
|
||||||
if (!mUi->filter->text().isEmpty())
|
if (!mUi->filter->text().isEmpty())
|
||||||
filterFunctions(mUi->filter->text());
|
filterFunctions(mUi->filter->text());
|
||||||
|
|
Loading…
Reference in New Issue