OSDN Git Service
(root)
/
qt-creator-jp
/
qt-creator-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9258302
)
Fix crash when loading a .qmlproject with a custom run configuration
author
Kai Koehne
<kai.koehne@nokia.com>
Wed, 9 Jun 2010 14:22:27 +0000
(16:22 +0200)
committer
Kai Koehne
<kai.koehne@nokia.com>
Wed, 9 Jun 2010 14:22:27 +0000
(16:22 +0200)
Task-number: QTCREATORBUG-1609
src/plugins/qmlprojectmanager/qmlproject.cpp
patch
|
blob
|
history
diff --git
a/src/plugins/qmlprojectmanager/qmlproject.cpp
b/src/plugins/qmlprojectmanager/qmlproject.cpp
index
ee72f41
..
f4532b5
100644
(file)
--- a/
src/plugins/qmlprojectmanager/qmlproject.cpp
+++ b/
src/plugins/qmlprojectmanager/qmlproject.cpp
@@
-258,7
+258,7
@@
bool QmlProject::fromMap(const QVariantMap &map)
refresh(Everything);
// FIXME workaround to guarantee that run/debug actions are enabled if a valid file exists
- QmlProjectRunConfiguration *runConfig =
static
_cast<QmlProjectRunConfiguration*>(activeTarget()->activeRunConfiguration());
+ QmlProjectRunConfiguration *runConfig =
qobject
_cast<QmlProjectRunConfiguration*>(activeTarget()->activeRunConfiguration());
if (runConfig)
runConfig->changeCurrentFile(0);