Skip to content

Commit

Permalink
Make adding files to an existing project is marked as a change.
Browse files Browse the repository at this point in the history
  • Loading branch information
rnorris committed Jan 18, 2025
1 parent 1b2479f commit d35a5e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vikwindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -5126,6 +5126,11 @@ void vik_window_open_file ( VikWindow *vw, const gchar *filename, gboolean chang
if ( ! success || restore_original_filename )
// Load didn't work or want to keep as the existing Viking project, keep using the original name
window_set_filename ( vw, original_filename );

if ( original_filename && success )
// Load was into existing project
vik_window_set_modified ( vw );

g_free ( original_filename );

if ( last ) {
Expand Down

0 comments on commit d35a5e8

Please sign in to comment.