freebsd-ports/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp
Philip M. Gollucci e86c459a92 databases/sqlitebrowser: modernize, fix dependencies
- Replace USE_QT4=linguist_build with USE_QT4=linguisttools_build.
- Add missed corelib and network components into USE_QT4.
- Regenerate patches.
- Bump PORTREVISION

PR:                  201648
Submitted by:        s3erios@gmail.com
Approved by:         maintainer timeout (coder@tuxfamily.org ; 25 days)
2015-08-12 00:10:35 +00: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();