Skip to content
Snippets Groups Projects
Commit 443d5d3d authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Make sure to initialize a variable

 ... otherwise the ASSERT will not trigger when it should.
parent fd00ec23
No related branches found
No related tags found
No related merge requests found
...@@ -409,7 +409,7 @@ void ProjectWindow::showProperties(int index, int subIndex) ...@@ -409,7 +409,7 @@ void ProjectWindow::showProperties(int index, int subIndex)
if (fac) { if (fac) {
removeCurrentWidget(); removeCurrentWidget();
IPropertiesPanel *panel; IPropertiesPanel *panel = 0;
if (ITargetPanelFactory *ipf = qobject_cast<ITargetPanelFactory *>(fac)) if (ITargetPanelFactory *ipf = qobject_cast<ITargetPanelFactory *>(fac))
panel = ipf->createPanel(project->activeTarget()); panel = ipf->createPanel(project->activeTarget());
else if (IProjectPanelFactory *ipf = qobject_cast<IProjectPanelFactory *>(fac)) else if (IProjectPanelFactory *ipf = qobject_cast<IProjectPanelFactory *>(fac))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment