@LiquidCake commented on this pull request.


>               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 or view it on GitHub:
https://github.com/geany/geany/pull/3911#discussion_r1707740449
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3911/review/[email protected]>

Reply via email to