Commit 7faec14c authored by Michael Reeves's avatar Michael Reeves

Fix compile on windows

parent 965277e8
Pipeline #8409 passed with stage
in 9 minutes and 28 seconds
......@@ -24,6 +24,10 @@
#include <KSharedConfig>
#ifdef Q_OS_WIN
#include <QSettings>
#endif
#define KDIFF3_CONFIG_GROUP "KDiff3 Options"
void Options::init()
......@@ -49,7 +53,7 @@ void Options::apply()
}
#ifdef Q_OS_WIN //TODO: Needed? If so move this to optionItemList like everything else.
QString locale = m_options->m_language;
QString locale = m_language;
if(locale == "Auto" || locale.isEmpty())
locale = QLocale::system().name().left(2);
int spacePos = locale.indexOf(' ');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment