diff --git a/options.cpp b/options.cpp
index ae3e8db4c6..367ca61a32 100644
--- a/options.cpp
+++ b/options.cpp
@@ -30,6 +30,7 @@ along with this program. If not, see .
#include
#include
#include
+#include
#include
@@ -65,7 +66,7 @@ int currentRefreshRate()
{
QString reply = QString::fromLocal8Bit( nvidia_settings.readAllStandardOutput() );
bool ok;
- rate = reply.split(' ').first().split(',').first().toUInt( &ok );
+ rate = reply.split(' ').first().split(KGlobal::locale()->decimalSymbol()).first().toUInt( &ok );
if ( !ok )
rate = -1;
}