@LiquidCake commented on this pull request.


In plugins/saveactions.c:

>  		if (is_temp_saved_file_name(filename))
 		{
-			GeanyDocument *doc = document_open_file(locale_file_path, FALSE, NULL, NULL);
+			gchar *locale_file_path, *file_path_utf8;
+
+			locale_file_path = g_build_path(G_DIR_SEPARATOR_S, persistent_temp_files_target_dir, filename, NULL);
+			file_path_utf8 = utils_get_utf8_from_locale(locale_file_path);
+			GeanyDocument *doc = document_find_by_filename(file_path_utf8);
+
+			g_free(file_path_utf8);
+
+			if (doc == NULL) {

fixed


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/pull/3911/review/2226017268@github.com>