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)
|
||||
{
|
||||
if (params.contains("-p")) {
|
||||
QString projFile;
|
||||
const int ind = params.indexOf("-p");
|
||||
if ((ind + 1) < params.length())
|
||||
projFile = params[ind + 1];
|
||||
|
||||
LoadProjectFile(projFile);
|
||||
LoadProjectFile(params[ind + 1]);
|
||||
} else
|
||||
DoCheckFiles(params);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue