summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/datebookdb.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/library/datebookdb.cpp b/library/datebookdb.cpp
index a26fe8f..0fedfa8 100644
--- a/library/datebookdb.cpp
+++ b/library/datebookdb.cpp
@@ -838,13 +838,18 @@ void DateBookDB::loadFile( const QString &strFile )
838 else if ( value == "Yearly" ) 838 else if ( value == "Yearly" )
839 rp.type = Event::Yearly; 839 rp.type = Event::Yearly;
840 else 840 else
841 rp.type = Event::NoRepeat; 841 rp.type = Event::NoRepeat;
842 break; 842 break;
843 case FRWeekdays: 843 case FRWeekdays:
844 rp.days = value.toInt(); 844 // QtopiaDesktop 1.6 sometimes creates 'rweekdays="0"'
845 // when it goes mad. This causes datebook to crash.. (se)
846 if ( value.toInt() != 0 )
847 rp.days = value.toInt();
848 else
849 rp.days = 1;
845 break; 850 break;
846 case FRPosition: 851 case FRPosition:
847 rp.position = value.toInt(); 852 rp.position = value.toInt();
848 break; 853 break;
849 case FRFreq: 854 case FRFreq:
850 rp.frequency = value.toInt(); 855 rp.frequency = value.toInt();