diff --git a/qt/lc_qpreferencesdialog.cpp b/qt/lc_qpreferencesdialog.cpp index 144e35a4..3fe0fbb5 100644 --- a/qt/lc_qpreferencesdialog.cpp +++ b/qt/lc_qpreferencesdialog.cpp @@ -1026,7 +1026,7 @@ void lcPreferencesDialog::UpdateCommandList() else SubSection = Section; - if (parent()) + if (Parent) CategoryItem = new QTreeWidgetItem(Parent, QStringList(SubSection)); else CategoryItem = new QTreeWidgetItem(ui->commandList, QStringList(SubSection));