diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-10-26 13:43:00 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-26 20:44:02 +0200 |
commit | a0c40833a46933ef78d6353d0c1f4af31cdb6677 (patch) | |
tree | 7da1f9ea3c6950d92f211972936f6d785d9727cf /subsurface-desktop-main.cpp | |
parent | 5269f8ce4005c10064b613a42e40822582aa4826 (diff) | |
download | subsurface-a0c40833a46933ef78d6353d0c1f4af31cdb6677.tar.gz |
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>
Diffstat (limited to 'subsurface-desktop-main.cpp')
-rw-r--r-- | subsurface-desktop-main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp index 49272e3ea..029f8569e 100644 --- a/subsurface-desktop-main.cpp +++ b/subsurface-desktop-main.cpp @@ -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) { |