Compare commits
2 Commits
2b1fb5b0c2
...
1ce3a6c397
Author | SHA1 | Date | |
---|---|---|---|
1ce3a6c397 | |||
0183ad58b8 |
@ -223,6 +223,7 @@ EntryConfig EntryProvider::readqsrunFile(const QString &path)
|
|||||||
}
|
}
|
||||||
result.col = map["col"].toInt();
|
result.col = map["col"].toInt();
|
||||||
result.row = map["row"].toInt();
|
result.row = map["row"].toInt();
|
||||||
|
result.isTerminalCommand = map["terminal"] == "true";
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ void Window::executeConfig(const EntryConfig &config)
|
|||||||
if(config.isTerminalCommand)
|
if(config.isTerminalCommand)
|
||||||
{
|
{
|
||||||
QString cmd = settingsProvider->getTerminalCommand();
|
QString cmd = settingsProvider->getTerminalCommand();
|
||||||
cmd.replace("%c", config.command);
|
cmd.replace("%c", config.command + " " + config.arguments.join(' '));
|
||||||
QProcess::startDetached(cmd);
|
QProcess::startDetached(cmd);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user