Skip to content
Snippets Groups Projects
Commit 6af2e884 authored by Alexander Schwinn's avatar Alexander Schwinn
Browse files

Prevent glib-critical - followup of (#912)

parent 0a0a2bf6
No related branches found
No related tags found
No related merge requests found
...@@ -456,7 +456,7 @@ thunar_location_entry_emit_edit_done (ThunarLocationEntry *entry) ...@@ -456,7 +456,7 @@ thunar_location_entry_emit_edit_done (ThunarLocationEntry *entry)
* - do not emit the signal if the context menu was opened * - do not emit the signal if the context menu was opened
* - only emit the signal if we are the toplevel window (no reset on a window backdrop) * - only emit the signal if we are the toplevel window (no reset on a window backdrop)
*/ */
if (entry->right_click_occurred == FALSE && gtk_window_has_toplevel_focus (GTK_WINDOW (window)) == TRUE) if (entry->right_click_occurred == FALSE && GTK_IS_WINDOW (window) && gtk_window_has_toplevel_focus (GTK_WINDOW (window)) == TRUE)
{ {
g_signal_handlers_disconnect_by_func (entry->path_entry, G_CALLBACK (thunar_location_entry_emit_edit_done), entry); g_signal_handlers_disconnect_by_func (entry->path_entry, G_CALLBACK (thunar_location_entry_emit_edit_done), entry);
g_signal_emit_by_name (entry, "edit-done"); g_signal_emit_by_name (entry, "edit-done");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment