Simplification: Don't call LoadProjectFile with empty filename

This commit is contained in:
PKEuS 2012-10-21 11:40:01 +02:00
parent 14eede1cba
commit b06cebe9b5
1 changed files with 1 additions and 4 deletions

View File

@ -192,12 +192,9 @@ MainWindow::~MainWindow()
void MainWindow::HandleCLIParams(const QStringList &params) void MainWindow::HandleCLIParams(const QStringList &params)
{ {
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);
} }