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

List:       kde-commits
Subject:    =?utf-8?q?=5Bkstars/4=2E6=5D_kstars/widgets=3A_KCalendarSystem_c?=
From:       Khudyakov Alexey <alexey.skladnoy () gmail ! com>
Date:       2011-05-07 19:46:19
Message-ID: 20110507194619.F2058A60C4 () git ! kde ! org
[Download RAW message or body]

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() ) ) );
     }
 }


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

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