fix localisation...

svn path=/trunk/KDE/kdebase/workspace/; revision=1201490
This commit is contained in:
Thomas Lübking 2010-11-27 22:09:08 +00:00
parent c7a3a21116
commit 737abd7f4f

View file

@ -30,6 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <kconfig.h> #include <kconfig.h>
#include <kglobal.h> #include <kglobal.h>
#include <kglobalsettings.h> #include <kglobalsettings.h>
#include <klocale.h>
#include <QDesktopWidget> #include <QDesktopWidget>
@ -65,7 +66,7 @@ int currentRefreshRate()
{ {
QString reply = QString::fromLocal8Bit( nvidia_settings.readAllStandardOutput() ); QString reply = QString::fromLocal8Bit( nvidia_settings.readAllStandardOutput() );
bool ok; bool ok;
rate = reply.split(' ').first().split(',').first().toUInt( &ok ); rate = reply.split(' ').first().split(KGlobal::locale()->decimalSymbol()).first().toUInt( &ok );
if ( !ok ) if ( !ok )
rate = -1; rate = -1;
} }