]> git.tdb.fi Git - ext/subsurface.git/blobdiff - gtk-gui.c
Make the first filename on the command line the default filename
[ext/subsurface.git] / gtk-gui.c
index 351e7b9f4812d717cafc06e83b19e583c39877ef..b28ca2513b756c8cd020dca4e7046562c28b00d4 100644 (file)
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -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;
 }