Coverity issues:

129097
129098
129099
129101
129102
129132
129134
129203
This commit is contained in:
wmayer
2016-08-16 16:34:51 +02:00
parent 1134ab9747
commit 683f943d38
6 changed files with 24 additions and 13 deletions

View File

@@ -390,8 +390,11 @@ QWidget* WidgetFactoryInst::createPrefWidget(const char* sName, QWidget* parent,
w->setParent(parent);
try {
dynamic_cast<PrefWidget*>(w)->setEntryName(sPref);
dynamic_cast<PrefWidget*>(w)->restorePreferences();
PrefWidget* pw = dynamic_cast<PrefWidget*>(w);
if (pw) {
pw->setEntryName(sPref);
pw->restorePreferences();
}
}
catch (...) {
#ifdef FC_DEBUG