freebsd-ports/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp
Ruslan Makhmatkhanov 78e39c6d50 databases/sqlitebrowser: update to 3.9.0
- update to 3.9.0
- update maintainer's email
- pet portlint

PR:		212395
Submitted by:	 lbartoletti <lbartoletti@tuxfamily.org> (maintainer)
2016-10-01 01:05:14 +00:00

16 lines
504 B
C++

--- src/PreferencesDialog.cpp.orig 2016-08-24 11:00:01 UTC
+++ src/PreferencesDialog.cpp
@@ -465,8 +465,13 @@ void PreferencesDialog::removeExtension(
void PreferencesDialog::fillLanguageBox()
{
+#ifdef Q_OS_FREEBSD
+ QDir translationsDir("%%DATADIR%%/translations",
+ "sqlb_*.qm");
+#else
QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",
"sqlb_*.qm");
+#endif
QLocale systemLocale = QLocale::system();