Refresh the screen even if started with no valid files

If no command line argument is given and no default file is set we didn't
call refreshDisplay() and so the information widget stayed enabled even
though no dive was shown which looked really weird and was inconsistent
with what we showed when the user closed an already open file.

This makes the behavior more consistent.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-10-08 07:40:29 +01:00
parent 37445df0b9
commit f24ab1dfa2

View file

@ -1587,9 +1587,10 @@ void MainWindow::importTxtFiles(const QStringList fileNames)
void MainWindow::loadFiles(const QStringList fileNames)
{
bool showWarning = false;
if (fileNames.isEmpty())
if (fileNames.isEmpty()) {
refreshDisplay();
return;
}
QByteArray fileNamePtr;
QStringList failedParses;