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

List:       kde-commits
Subject:    playground/office/kraft/src
From:       Klaas Freitag <freitag () suse ! de>
Date:       2006-12-26 15:41:43
Message-ID: 1167147703.046107.12431.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 616730 by freitag:

fixed string loading from db

 M  +1 -1      kraftdb.cpp  


--- trunk/playground/office/kraft/src/kraftdb.cpp #616729:616730
@@ -152,7 +152,7 @@
   // cur.setMode( QSqlCursor::ReadOnly );
   cur.select( QString( "category='%1'" ).arg( selector ) );
   while ( cur.next() ) {
-    QString w = cur.value( "word" ).toString();
+    QString w = QString::fromUtf8( cur.value( "word" ).toCString() );
     kdDebug() << "Adding to wordlist <" << w << ">" << endl;
     StringMap::Iterator it;
     for ( it = replaceMap.begin(); it != replaceMap.end(); ++it ) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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