diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-05-01 14:09:34 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-05-01 14:09:34 -0400 |
commit | 3baddab5db036d0bfc7d4df5f4c5d2725d6c520f (patch) | |
tree | 41f81a176d1aadaee8c3351c4874db36a8813efe | |
parent | d92c6406d103520ecd40dea21b4e60eaa740ac9e (diff) | |
download | gtk+-fix-pathbar-assertion.tar.gz |
pathbar: Setup the cancellable earlierfix-pathbar-assertion
There have been reports of people hitting the
assertion in drop_node_for_cancellable, and a
plausible explanation is that we are adding it
too late in the codepath.
Fixes: #5792
-rw-r--r-- | gtk/gtkpathbar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index bdd4987b30..267da3db1f 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -935,6 +935,7 @@ _gtk_path_bar_set_file (GtkPathBar *path_bar, info->cancellable = g_cancellable_new (); path_bar->get_info_cancellable = info->cancellable; + add_cancellable (path_bar, info->cancellable); if (g_file_is_native (info->file)) { @@ -959,7 +960,6 @@ _gtk_path_bar_set_file (GtkPathBar *path_bar, gtk_path_bar_get_mount_callback, info); } - add_cancellable (path_bar, info->cancellable); } /** |