From kde-commits Sat May 07 19:46:19 2011 From: Khudyakov Alexey Date: Sat, 07 May 2011 19:46:19 +0000 To: kde-commits Subject: =?utf-8?q?=5Bkstars/4=2E6=5D_kstars/widgets=3A_KCalendarSystem_c?= Message-Id: <20110507194619.F2058A60C4 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=130479763931463 Git commit 8dbabe1b14951092bcb2cfa7c9d38ab0029c72d3 by Khudyakov Alexey, on behalf of Alexey Khudyakov. Committed on 20/02/2011 at 18:03. Pushed by khudyakov into branch '4.6'. KCalendarSystem could figure out year on its own. Besides code compiles with kdelibs4.4 svn path=/trunk/KDE/kdeedu/kstars/; revision=1221819 M +1 -1 kstars/widgets/genericcalendarwidget.cpp http://commits.kde.org/kstars/8dbabe1b14951092bcb2cfa7c9d38ab0029c72d3 diff --git a/kstars/widgets/genericcalendarwidget.cpp b/kstars/widgets/genericcalendarwidget.cpp index ef40899..6bbb5cb 100644 --- a/kstars/widgets/genericcalendarwidget.cpp +++ b/kstars/widgets/genericcalendarwidget.cpp @@ -80,7 +80,7 @@ const KCalendarSystem *GenericCalendarWidget::calendar() const { void GenericCalendarWidget::populateMonthNames() { // Populate the combobox with month names -- can change by year / calendar type selectMonth->clear(); - for ( int m = 1; m <= calendar()->monthsInYear( calendar()->year( date() ) ); m++ ) { + for ( int m = 1; m <= calendar()->monthsInYear( date() ); m++ ) { selectMonth->addItem( calendar()->monthName( m, calendar()->year( date() ) ) ); } }