[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars/widgets
From:       Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date:       2011-02-20 17:03:36
Message-ID: 20110220170336.412C1AC8BF () svn ! kde ! org
[Download RAW message or body]

SVN commit 1221819 by khudyakov:

KCalendarSystem could figure out year on its own.

Besides code compiles with kdelibs4.4

 M  +1 -1      genericcalendarwidget.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/widgets/genericcalendarwidget.cpp #1221818:1221819
@@ -80,7 +80,7 @@
 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() ) ) );
     }
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic