Commit 443d5d3d authored by Tobias Hunger's avatar Tobias Hunger

Make sure to initialize a variable

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