Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment