Commit 979e8100 authored by Kai Koehne's avatar Kai Koehne
Browse files

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'.
parent 71376673
......@@ -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_usingCurrentFile = true;
} else if (source == FileInProjectFile) {
Supports Markdown
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