Kaydet (Commit) b65f4990 authored tarafından Colomban Wendling's avatar Colomban Wendling

Fix closing the documents when quitting

When quitting we avoid doing some unnecessary actions, and used to
simply destroy the Scintilla widget (and thus the notebook page)
instead of the elaborate UI updates.

Unfortunately, when the infobars landed they changed what is packed as
a notebook page, and now destroying the Scintilla widget alone is not
enough to close the page.  Fix this by properly removing the whole page
no matter what it contains.

This issue was visible when quitting Geany with a project open.
üst 0682a255
......@@ -653,7 +653,7 @@ static gboolean remove_page(guint page_num)
/* we need to destroy the ScintillaWidget so our handlers on it are
* disconnected before we free any data they may use (like the editor).
* when not quitting, this is handled by removing the notebook page. */
gtk_widget_destroy(GTK_WIDGET(doc->editor->sci));
gtk_notebook_remove_page(GTK_NOTEBOOK(main_widgets.notebook), page_num);
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment