display notification when alert is enabled and not when graph is draw
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 30 Apr 2012 09:46:06 +0000 (09:46 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 30 Apr 2012 09:46:06 +0000 (09:46 +0000)
src/main.c

index 6ed42c5..61b920d 100644 (file)
@@ -241,7 +241,7 @@ gboolean ui_refresh_thread(gpointer data)
 static void cb_alarm_raised(struct psensor *sensor, void *data)
 {
 #ifdef HAVE_LIBNOTIFY
-       if (sensor->enabled)
+       if (sensor->alarm_enabled)
                ui_notify(sensor, (struct ui_psensor *)data);
 #endif
 }