diff --git a/MONI/ViewModels/MainViewModel.cs b/MONI/ViewModels/MainViewModel.cs index 978741d..1d66a18 100644 --- a/MONI/ViewModels/MainViewModel.cs +++ b/MONI/ViewModels/MainViewModel.cs @@ -500,7 +500,7 @@ public void SelectDate(DateTime date) { this.CreateAndLoadYear(date.Year); } - if (this.workMonth == null || date.Month != this.workMonth.Month) + if (this.workMonth == null || date.Year != this.workMonth.Year || date.Month != this.workMonth.Month) { this.WorkMonth = this.WorkYear.Months.ElementAt(date.Month - 1); this.WorkMonth.CalcPreviewHours();