summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 351e7b9f4..b28ca2513 100644
--- 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;
}