opnsense-ports/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp
Franco Fichtner 4bddc5b814 */*: sync with upstream
Taken from: FreeBSD
2015-08-12 06:33:37 +02:00

19 lines
594 B
C++

--- src/PreferencesDialog.cpp.orig 2015-04-27 09:31:47 UTC
+++ src/PreferencesDialog.cpp
@@ -356,8 +356,15 @@ void PreferencesDialog::removeExtension(
void PreferencesDialog::fillLanguageBox()
{
- QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",
+
+#ifdef Q_OS_FREEBSD
+ QDir translationsDir("%%DATADIR%%/translations",
"sqlb_*.qm");
+#else
+ QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",
+ "sqlb_*.qm");
+
+#endif
QLocale systemLocale = QLocale::system();