mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
37445df0b9
commit
f24ab1dfa2
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue