Simplification: Don't call LoadProjectFile with empty filename
This commit is contained in:
parent
14eede1cba
commit
b06cebe9b5
|
@ -192,12 +192,9 @@ MainWindow::~MainWindow()
|
||||||
void MainWindow::HandleCLIParams(const QStringList ¶ms)
|
void MainWindow::HandleCLIParams(const QStringList ¶ms)
|
||||||
{
|
{
|
||||||
if (params.contains("-p")) {
|
if (params.contains("-p")) {
|
||||||
QString projFile;
|
|
||||||
const int ind = params.indexOf("-p");
|
const int ind = params.indexOf("-p");
|
||||||
if ((ind + 1) < params.length())
|
if ((ind + 1) < params.length())
|
||||||
projFile = params[ind + 1];
|
LoadProjectFile(params[ind + 1]);
|
||||||
|
|
||||||
LoadProjectFile(projFile);
|
|
||||||
} else
|
} else
|
||||||
DoCheckFiles(params);
|
DoCheckFiles(params);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue