From f24ab1dfa217e9035c055b0f912e5dcdb0dc941a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 8 Oct 2015 07:40:29 +0100 Subject: 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 --- qt-ui/mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 87597606d..084c9f10f 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -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; -- cgit v1.2.3-70-g09d2