loadCache();
// load favorites
-// loadFavorites();
+ loadFavorites();
// and a status bar
statusBar()->show();
KitaMainWindow::~KitaMainWindow()
{
-// saveFavorites();
+ saveFavorites();
saveCache();
writeConfig(KGlobal::config());
QFile file( favoritesConfigPath );
if( file.open(IO_WriteOnly) ) {
QTextStream stream(&file);
- stream << (const char *)(FavoriteThreads::getInstance()->toXml().utf8());
+ stream.setEncoding( QTextStream::UnicodeUTF8 );
+ stream << FavoriteThreads::getInstance()->toXml();
qDebug("'%s'", (const char *)FavoriteThreads::getInstance()->toXml().local8Bit() );
}
}
ret += "<board xmlns=\"http://kita.sourceforge.jp/ns/board\">\n";
ret += QString("<url>%1</url>\n").arg( m_boardURL.prettyURL() );
- ret += QString("<name>%1</name>\n").arg( m_boardName.utf8() );
+ ret += QString("<name>%1</name>\n").arg( m_boardName );
ret += "</board>\n";
return ret;