Make sure to initialize a variable

... otherwise the ASSERT will not trigger when it should.
This commit is contained in:
Tobias Hunger
2010-06-18 13:34:35 +02:00
parent fd00ec23ec
commit 443d5d3dc6

View File

@@ -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))