Skip the empty dates in the next30
[gregoa/zavai.git] / src / widgets / calendar.vala
index cf8a7fc3b6ad5cd6d5b113d81a39245dff6d552c..8f2c662717a8ecb00479b6f88346a3474ce2b0a5 100644 (file)
@@ -234,8 +234,11 @@ public class Calendar : Gtk.VBox
                                        text = "";
                                }
                        }
-                       date.strftime(buffer, "%d %a");
-                       next_30.add_day((string)buffer, text);
+                       if (text != "")
+                       {
+                               date.strftime(buffer, "%d %a");
+                               next_30.add_day((string)buffer, text);
+                       }
                        date.add_days(1);
                }
        }