fix execution line splitting when no arguments are provided
This commit is contained in:
parent
c955e6a8f8
commit
7ef9dd7751
1 changed files with 1 additions and 6 deletions
|
@ -658,12 +658,7 @@ QList<Message> StandardFeed::obtainNewMessages(bool* error_during_obtaining) {
|
|||
}
|
||||
|
||||
QStringList StandardFeed::prepareExecutionLine(const QString& execution_line) {
|
||||
auto split_exec = execution_line.split('#', Qt::SplitBehaviorFlags::KeepEmptyParts);
|
||||
|
||||
if (split_exec.size() <= 1) {
|
||||
throw ScriptException(ScriptException::Reason::ExecutionLineInvalid);
|
||||
}
|
||||
|
||||
auto split_exec = execution_line.split('#', Qt::SplitBehaviorFlags::SkipEmptyParts);
|
||||
auto user_data_folder = qApp->userDataFolder();
|
||||
|
||||
return split_exec.replaceInStrings(EXECUTION_LINE_USER_DATA_PLACEHOLDER, user_data_folder);
|
||||
|
|
Loading…
Add table
Reference in a new issue