Skip to content

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

Gary Li requested to merge li-gary/nautilus:bind-menu-model-crash into master

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 #2867 (closed)

Merge request reports