Skip to content
Commit 403d2168 authored by Gary Li's avatar Gary Li Committed by Corey Berla
Browse files

pathbar: do not use finalized pathbar to bind menu model to popover

Nautilus fails critical assertions if the user opens then closes a
new window in rapid succession in a large folder.

This is because the GSource created by
nautilus_path_bar_set_templates_menu to bind menu model to popover is
not removed even if the pathbar has already been finalized by the user
closing the window.

Keep track of the source id and remove source if the pathbar is
being disposed of.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2867


(cherry picked from commit c10be39c)
parent d7488f41
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