diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2010-12-10 13:19:55 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2010-12-10 13:25:26 +0100 |
commit | 979e81005ed5b52ac32150027beee69fc8922b8e (patch) | |
tree | 2938f747ff611afa8d50ab81b05f4264f13168c8 /src/plugins/qmlprojectmanager | |
parent | 71376673e1a37c21b02c1092a10d56035c42626a (diff) | |
download | qt-creator-979e81005ed5b52ac32150027beee69fc8922b8e.tar.gz |
QmlProject: Store 'run current file' in settings
Store the artifical 'CurrentFile' in the settings as the mainFile, cause
leaving it empty translates to 'use file from project'.
Diffstat (limited to 'src/plugins/qmlprojectmanager')
-rw-r--r-- | src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp b/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp index e953208d3b..f4eeb8a7d3 100644 --- a/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp +++ b/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp @@ -227,7 +227,8 @@ QString QmlProjectRunConfiguration::mainScript() const void QmlProjectRunConfiguration::setScriptSource(MainScriptSource source, const QString &settingsPath) { - if (source == FileInEditor) { m_scriptFile.clear(); + if (source == FileInEditor) { + m_scriptFile = M_CURRENT_FILE; m_mainScriptFilename.clear(); m_usingCurrentFile = true; } else if (source == FileInProjectFile) { |