[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kmail
From: Allen Winter <winter () kde ! org>
Date: 2008-10-22 16:01:44
Message-ID: 1224691304.524492.31110.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 874866 by winterz:
remove the assert on the date display type selected.
use a normal conditional instead.
now you can actually change your account settings.
M +4 -3 configuredialog.cpp
--- trunk/KDE/kdepim/kmail/configuredialog.cpp #874865:874866
@@ -1980,9 +1980,10 @@
int dateDisplayID = mDateDisplay->selected();
// check bounds:
- assert( dateDisplayID >= 0 ); assert( dateDisplayID < numDateDisplayConfig );
- general.writeEntry( "dateFormat",
- (int)dateDisplayConfig[ dateDisplayID ].dateDisplay );
+ if ( ( dateDisplayID >= 0 ) && ( dateDisplayID < numDateDisplayConfig ) ) {
+ general.writeEntry( "dateFormat",
+ (int)dateDisplayConfig[ dateDisplayID ].dateDisplay );
+ }
general.writeEntry( "customDateFormat", mCustomDateFormatEdit->text() );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic