fix crash on empty args

This commit is contained in:
Jonathan 2023-05-23 22:04:25 -04:00
parent 9cbe13caae
commit f73d71a7ca
1 changed files with 2 additions and 0 deletions

View File

@ -315,6 +315,8 @@ void MainWindow::loadFileInternal(const QString &file, bool is_reload)
std::vector<const char *> argPtrs;
argPtrs.push_back("");
for (const std::string &arg : opts) {
argPtrs.push_back(arg.data());
}