From 988f09bb051dca0437ecec431ee44ed5b4a560d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 5 Jun 2014 14:05:44 +0200 Subject: Fix locale-aware reading in KDesktopFile The underlying KConfig used QLocale::name() for getting the locale aware part. But this returns "de_DE" while the desktop files store "de". In addition it constructs a QLocale object instead of using the system locale. This has the advantage that the usage of QLocale::setDafault() gets honored by KConfig. REVIEW: 118564 --- autotests/kdesktopfiletest.h | 1 + 1 file changed, 1 insertion(+) (limited to 'autotests/kdesktopfiletest.h') diff --git a/autotests/kdesktopfiletest.h b/autotests/kdesktopfiletest.h index d57351fd..f854d6cc 100644 --- a/autotests/kdesktopfiletest.h +++ b/autotests/kdesktopfiletest.h @@ -26,6 +26,7 @@ class KDesktopFileTest : public QObject Q_OBJECT private Q_SLOTS: void testRead(); + void testReadLocalized(); void testUnsuccessfulTryExec(); void testSuccessfulTryExec(); void testActionGroup(); -- cgit v1.2.1