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

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_mainScriptFilename.clear();
m_usingCurrentFile = true;
} else if (source == FileInProjectFile) {
......
Markdown is supported
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