summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/projectwindow.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2010-06-18 13:34:35 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2010-06-18 13:34:35 +0200
commit443d5d3dc6c77c7bd544cf3523c8a155dcfc05b0 (patch)
tree0c853285269576f9f3c0c95f4eefcb651685aebe /src/plugins/projectexplorer/projectwindow.cpp
parentfd00ec23ec1c5297d05a05ba012f649b3608d1f0 (diff)
downloadqt-creator-443d5d3dc6c77c7bd544cf3523c8a155dcfc05b0.tar.gz
Make sure to initialize a variable
... otherwise the ASSERT will not trigger when it should.
Diffstat (limited to 'src/plugins/projectexplorer/projectwindow.cpp')
-rw-r--r--src/plugins/projectexplorer/projectwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/projectwindow.cpp b/src/plugins/projectexplorer/projectwindow.cpp
index e1c15fc339..d6b4e505cb 100644
--- a/src/plugins/projectexplorer/projectwindow.cpp
+++ b/src/plugins/projectexplorer/projectwindow.cpp
@@ -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))