| Summary: | KDateWidget shows double set of monthes after setDate call | ||
|---|---|---|---|
| Product: | [Unmaintained] kdelibs | Reporter: | Sergey Ivanov <123kash> |
| Component: | kdeui | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | aspotashev, cfeck |
| Priority: | NOR | ||
| Version First Reported In: | SVN | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 4.6.3 | |
| Sentry Crash Report: | |||
| Attachments: | Patch to fix | ||
Created attachment 59156 [details]
Patch to fix
Git commit 9f7171aa55664bcdd0e03d5a39d8d5491ba607c8 by Christoph Feck. Committed on 20/04/2011 at 16:58. Pushed by cfeck into branch 'master'. Fix month names appearing multiple times Patch by Sergey Ivanov, thanks! BUG: 271347 FIXED-IN: 4.6.3 M +1 -0 kdeui/widgets/kdatewidget.cpp http://commits.kde.org/kdelibs/9f7171aa55664bcdd0e03d5a39d8d5491ba607c8 Sorry, not backporting, so will appear in 4.7.0. Git commit 7e24c016c9716843b017560e2fca830ecd6f85bc by Christoph Feck. Committed on 20/04/2011 at 16:58. Pushed by cfeck into branch 'KDE/4.6'. Fix month names appearing multiple times Patch by Sergey Ivanov, thanks! BUG: 271347 FIXED-IN: 4.6.3 (cherry picked from commit 9f7171aa55664bcdd0e03d5a39d8d5491ba607c8) M +1 -0 kdeui/widgets/kdatewidget.cpp http://commits.kde.org/kdelibs/7e24c016c9716843b017560e2fca830ecd6f85bc Sorry for the flood, but I am still learning how to use the new git tools... I hope the backport worked as intended. *** Bug 269716 has been marked as a duplicate of this bug. *** |
Version: SVN (using Devel) OS: Linux KDateWidget::setDate function adds to d->m_month KComboBox one more set of monthes. So after 1st call of setDate, widget contains double set of monthes, after 2nd - triple, and so on. Reproducible: Always Steps to Reproduce: #include <QApplication> #include <QDate> #include <kdatewidget.h> int main( int argc, char **argv ) { QApplication app( argc, argv ); KDateWidget date; date.setDate( QDate::currentDate() ); date.setDate( QDate::currentDate() ); date.show(); return app.exec(); } Actual Results: Widget has triple set of monthes. Expected Results: Widget contains only one set of monthes.