mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
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:
parent
5269f8ce40
commit
a0c40833a4
1 changed files with 4 additions and 0 deletions
|
@ -102,7 +102,11 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
MainWindow *m = MainWindow::instance();
|
MainWindow *m = MainWindow::instance();
|
||||||
filesOnCommandLine = !files.isEmpty() || !importedFiles.isEmpty();
|
filesOnCommandLine = !files.isEmpty() || !importedFiles.isEmpty();
|
||||||
|
if (verbose && !files.isEmpty())
|
||||||
|
qDebug() << "loading dive data from" << files;
|
||||||
m->loadFiles(files);
|
m->loadFiles(files);
|
||||||
|
if (verbose && !importedFiles.isEmpty())
|
||||||
|
qDebug() << "importing dive data from" << importedFiles;
|
||||||
m->importFiles(importedFiles);
|
m->importFiles(importedFiles);
|
||||||
|
|
||||||
if (verbose > 0) {
|
if (verbose > 0) {
|
||||||
|
|
Loading…
Reference in a new issue