@LiquidCake commented on this pull request.
> +
+
+static void show_unsaved_dialog_for_persistent_temp_files_tab_closing(
+ GeanyDocument *doc, const gchar *short_filename)
+{
+ gchar *msg, *old_file_path, *locale_file_path;
+ const gchar *msg2;
+ gint response;
+
+ msg = g_strdup_printf(_("The file '%s' is not saved."), short_filename);
+ msg2 = _("Do you want to save it before closing?");
+
+ response =
run_unsaved_dialog_for_persistent_temp_files_tab_closing(msg, msg2);
+ g_free(msg);
+
+ locale_file_path = g_strdup(doc->real_path);
strdup is needed because path is changed after save actions is performed below.
But i lowered scope of that variable and used real_path where possible
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3911#discussion_r1654643767
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/pull/3911/review/[email protected]>