@cwendling commented on this pull request.
@@ -628,7 +628,9 @@ static GeanyDocument *document_create(const gchar *utf8_filename)
{ doc = document_get_current(); /* remove the empty document first */ - if (doc != NULL && doc->file_name == NULL && ! doc->changed) + if (doc != NULL && doc->file_name == NULL && ! doc->changed && + // check save as dialog isn't running + gtk_window_is_active(GTK_WINDOW(main_widgets.window)))
Not sure if that would actually account for dialogs as well, I would think it's mostly to select the MRU one in a multi-window app.