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

List:       kde-bugs-dist
Subject:    [Bug 262488] Country/region and language crashes as soon as I try to
From:       Stephan Kulow <coolo () kde ! org>
Date:       2011-02-27 9:48:28
Message-ID: 20110227094828.EC8027F949 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=262488


Stephan Kulow <coolo@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |coolo@kde.org




--- Comment #27 from Stephan Kulow <coolo kde org>  2011-02-27 10:48:23 ---
I applied this to the suse packages:

 QString KCMLocale::dayPeriodText( const QString &dayPeriod )
 {
-    return dayPeriod.split( QChar::fromLatin1(',') ).at( 2 );
+    QStringList split = dayPeriod.split( QChar::fromLatin1(',') );
+    if (split.size() > 1)
+       return split.at( 2 );
+    else
+       return QString::null;
 }

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

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