GUI: early return
This commit is contained in:
parent
31399e556b
commit
b1ae56736d
|
@ -1106,16 +1106,16 @@ void MainWindow::openResults()
|
||||||
|
|
||||||
void MainWindow::loadResults(const QString selectedFile)
|
void MainWindow::loadResults(const QString selectedFile)
|
||||||
{
|
{
|
||||||
if (!selectedFile.isEmpty()) {
|
if (selectedFile.isEmpty())
|
||||||
if (mProjectFile)
|
return;
|
||||||
closeProjectFile();
|
if (mProjectFile)
|
||||||
mIsLogfileLoaded = true;
|
closeProjectFile();
|
||||||
mUI.mResults->clear(true);
|
mIsLogfileLoaded = true;
|
||||||
mUI.mActionReanalyzeModified->setEnabled(false);
|
mUI.mResults->clear(true);
|
||||||
mUI.mActionReanalyzeAll->setEnabled(false);
|
mUI.mActionReanalyzeModified->setEnabled(false);
|
||||||
mUI.mResults->readErrorsXml(selectedFile);
|
mUI.mActionReanalyzeAll->setEnabled(false);
|
||||||
setPath(SETTINGS_LAST_RESULT_PATH, selectedFile);
|
mUI.mResults->readErrorsXml(selectedFile);
|
||||||
}
|
setPath(SETTINGS_LAST_RESULT_PATH, selectedFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::loadResults(const QString selectedFile, const QString sourceDirectory)
|
void MainWindow::loadResults(const QString selectedFile, const QString sourceDirectory)
|
||||||
|
|
Loading…
Reference in New Issue