|
|
|
@ -17,7 +17,7 @@
|
|
|
|
|
/* KDE */
|
|
|
|
|
#include <tdestandarddirs.h>
|
|
|
|
|
#include <tdeglobalsettings.h>
|
|
|
|
|
#include <ksimpleconfig.h>
|
|
|
|
|
#include <tdesimpleconfig.h>
|
|
|
|
|
#include <tdeconfig.h>
|
|
|
|
|
#include <kiconloader.h>
|
|
|
|
|
#include <kmdcodec.h>
|
|
|
|
@ -625,8 +625,8 @@ void resource::setTheme( int BoardIndex, int ChessmenIndex )
|
|
|
|
|
TQString chessmenURL;
|
|
|
|
|
TQString boardConf;
|
|
|
|
|
TQString chessmenConf;
|
|
|
|
|
KSimpleConfig *boardConfig;
|
|
|
|
|
KSimpleConfig *chessmenConfig;
|
|
|
|
|
TDESimpleConfig *boardConfig;
|
|
|
|
|
TDESimpleConfig *chessmenConfig;
|
|
|
|
|
|
|
|
|
|
/* Make sure the Indexes are valid */
|
|
|
|
|
if( BoardIndex > (signed)Boards.count() )
|
|
|
|
@ -661,11 +661,11 @@ void resource::setTheme( int BoardIndex, int ChessmenIndex )
|
|
|
|
|
/* load the theme.conf files */
|
|
|
|
|
if( !TDEIO::NetAccess::download( boardURL + "theme.conf", boardConf ) )
|
|
|
|
|
kdWarning() << "Can not read theme.conf from " << boardURL << endl;
|
|
|
|
|
boardConfig = new KSimpleConfig( boardConf, true );
|
|
|
|
|
boardConfig = new TDESimpleConfig( boardConf, true );
|
|
|
|
|
|
|
|
|
|
if( !TDEIO::NetAccess::download( chessmenURL + "theme.conf", chessmenConf ) )
|
|
|
|
|
kdWarning() << "Can not read theme.conf from " << chessmenURL << endl;
|
|
|
|
|
chessmenConfig = new KSimpleConfig( chessmenConf, true );
|
|
|
|
|
chessmenConfig = new TDESimpleConfig( chessmenConf, true );
|
|
|
|
|
|
|
|
|
|
/* Read the headers */
|
|
|
|
|
boardConfig->setGroup( "General" );
|
|
|
|
|