Report which files were opened / imported at start

We only do this in verbose mode to make sure a report contains the information
about the existing files used.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-10-26 13:43:00 +02:00
parent 5269f8ce40
commit a0c40833a4

View file

@ -102,7 +102,11 @@ int main(int argc, char **argv)
}
MainWindow *m = MainWindow::instance();
filesOnCommandLine = !files.isEmpty() || !importedFiles.isEmpty();
if (verbose && !files.isEmpty())
qDebug() << "loading dive data from" << files;
m->loadFiles(files);
if (verbose && !importedFiles.isEmpty())
qDebug() << "importing dive data from" << importedFiles;
m->importFiles(importedFiles);
if (verbose > 0) {