From fa5b7e32e12b6310c93a9d3c1c4654f61c0f6679 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 6 Oct 2018 12:37:44 +0200 Subject: Make relative paths cross-platform. --- src/localehandler.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/localehandler.cc') diff --git a/src/localehandler.cc b/src/localehandler.cc index 9bc08c8..37eb4ef 100644 --- a/src/localehandler.cc +++ b/src/localehandler.cc @@ -31,13 +31,14 @@ #include #include #include +#include LocaleHandler::LocaleHandler(QApplication& app) { QString locale = QLocale().name().section('_', 0, 0); if(!locale.isEmpty() && locale != "C") { - QString file = LOCALEDIR"/dgedit_" + locale + ".qm"; + QString file = QString(LOCALEDIR) + QDir::separator() + "dgedit_" + locale + ".qm"; if(QFile::exists(file)) { translator.load(file); -- cgit v1.2.3