From 4bd688d7a15be374d1b9085c1e5a3abe61abb673 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 12 Nov 2017 15:42:10 -0500 Subject: MqProfiles: Handle only the changes done hint --- (limited to 'src') diff --git a/src/config/profiles.c b/src/config/profiles.c index 8447ca2..8d7100d 100644 --- a/src/config/profiles.c +++ b/src/config/profiles.c @@ -119,6 +119,10 @@ changed(GFileMonitor G_GNUC_UNUSED *monitor, GFile G_GNUC_UNUSED *file, gchar *cur_name; gchar *cur_color; + if (event_type != G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT) { + return; + } + /* Save the current profile. */ if (profiles->current) { cur_name = mq_profiles_get_name( profiles, profiles->current); -- cgit v0.9.1