Commit fd8e11b9 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

fix enqueue from program arguments (for example from Doplhin)

BUG: 423007
parent adcba7aa
...@@ -215,7 +215,7 @@ void ElisaApplication::activateRequested(const QStringList &arguments, const QSt ...@@ -215,7 +215,7 @@ void ElisaApplication::activateRequested(const QStringList &arguments, const QSt
continue; continue;
} }
realArguments.push_back(DataTypes::EntryData{{}, {}, QUrl(oneArgument)}); realArguments.push_back(DataTypes::EntryData{{{DataTypes::ElementTypeRole, ElisaUtils::Track}}, {}, QUrl(oneArgument)});
} }
Q_EMIT enqueue(checkFileListAndMakeAbsolute(realArguments, workingDirectory), Q_EMIT enqueue(checkFileListAndMakeAbsolute(realArguments, workingDirectory),
...@@ -328,10 +328,10 @@ DataTypes::EntryDataList ElisaApplication::checkFileListAndMakeAbsolute(const Da ...@@ -328,10 +328,10 @@ DataTypes::EntryDataList ElisaApplication::checkFileListAndMakeAbsolute(const Da
} }
if (newFile.exists()) { if (newFile.exists()) {
filesToOpen.push_back(DataTypes::EntryData{{}, {}, QUrl::fromLocalFile(newFile.canonicalFilePath())}); filesToOpen.push_back(DataTypes::EntryData{std::get<0>(oneFile), std::get<1>(oneFile), QUrl::fromLocalFile(newFile.canonicalFilePath())});
} }
} else { } else {
filesToOpen.push_back(DataTypes::EntryData{{}, {}, std::get<2>(oneFile)}); filesToOpen.push_back(oneFile);
} }
} }
......
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