Merge pull request #6441 from spycrab/qt_exec

Qt/Main: Add option to launch file without -e
This commit is contained in:
Léo Lam 2018-03-16 20:25:13 +01:00 committed by GitHub
commit 917f0e2182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ int main(int argc, char* argv[])
QMessageBox::critical(nullptr, QObject::tr("Error"), QObject::tr("Invalid title ID."));
}
}
else if (!args.empty())
{
boot = BootParameters::GenerateFromFile(args.front());
}
int retval = 0;