mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make the first filename on the command line the default filename
From a usecase point of view - if we call with multiple file names then most likely it's subsurface MyDives.xml new_dive1.xml new_dive2.xml and therefore the existing "database" is the first filename, not the last one (as the current implementation assumes). Frankly, this is a bit arbitrary - but this one seems to make more sense. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
41084817ea
commit
e55b95b415
1 changed files with 1 additions and 1 deletions
|
@ -989,7 +989,7 @@ void update_progressbar(progressbar_t *progress, double value)
|
|||
|
||||
void set_filename(const char *filename)
|
||||
{
|
||||
if (filename)
|
||||
if (!existing_filename && filename)
|
||||
existing_filename = strdup(filename);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue