@LiquidCake commented on this pull request.


> +     if (! geany_is_closing_all_documents() && doc->real_path != NULL && 
> is_persistent_untitled_doc_file(doc->file_name))
+       {
+               gchar *short_filename = document_get_basename_for_display(doc, 
-1);
+
+               if (! document_is_empty(doc))
+               {
+                       
show_unsaved_dialog_for_persistent_untitled_docs_tab_closing(
+                               doc,
+                               short_filename
+                       );
+               }
+               else
+               {
+                       g_remove(doc->real_path);
+
+                       ui_set_statusbar(TRUE, _("Empty untitled document file 
%s was deleted"), short_filename);

done

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3911#discussion_r1852778219
You are receiving this because you are subscribed to this thread.

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

Reply via email to