Commit 19e709c4 authored by Igor's avatar Igor

Fix GLib-GObject-CRITICAL in directory monitoring code

parent f6a233c0
......@@ -836,11 +836,14 @@ rstto_image_list_monitor_dir (
NULL,
NULL);
g_signal_connect (
G_OBJECT(monitor),
"changed",
G_CALLBACK (cb_file_monitor_changed),
image_list);
if ( monitor != NULL )
{
g_signal_connect (
G_OBJECT (monitor),
"changed",
G_CALLBACK (cb_file_monitor_changed),
image_list);
}
}
if (image_list->priv->image_monitors)
......
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