opnsense-ports/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp
Franco Fichtner 8c34d21606 */*: bring in previously unknown upstream stuff
Taken from: FreeBSD
2015-04-22 06:26:02 +02:00

17 lines
616 B
C++

--- src/PreferencesDialog.cpp.orig 2015-02-01 15:27:53.407669984 +0100
+++ src/PreferencesDialog.cpp 2015-02-01 15:30:51.885904399 +0100
@@ -266,9 +266,13 @@
void PreferencesDialog::fillLanguageBox()
{
// Use the path relative to the main executable
+#ifdef Q_OS_FREEBSD
+ QDir translationsDir("%%DATADIR%%/translations",
+ "sqlb_*.qm");
+#else
QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",
"sqlb_*.qm");
-
+#endif
// Add default language
ui->languageComboBox->addItem("English (United States)", "en_US");