mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-05 14:28:40 +01:00
Add workaround for weird font issue in 10.9.
(cherry picked from commit b08898bf2d
)
This commit is contained in:
parent
92eb4fe74a
commit
d8e01157b0
@ -55,11 +55,13 @@
|
|||||||
#include "qtsinglecoreapplication.h"
|
#include "qtsinglecoreapplication.h"
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
#include <QFont>
|
||||||
#include <QLibraryInfo>
|
#include <QLibraryInfo>
|
||||||
#include <QNetworkProxyFactory>
|
#include <QNetworkProxyFactory>
|
||||||
#include <QSslSocket>
|
#include <QSslSocket>
|
||||||
#include <QSqlDatabase>
|
#include <QSqlDatabase>
|
||||||
#include <QSqlQuery>
|
#include <QSqlQuery>
|
||||||
|
#include <QSysInfo>
|
||||||
#include <QTextCodec>
|
#include <QTextCodec>
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
#include <QtConcurrentRun>
|
#include <QtConcurrentRun>
|
||||||
@ -236,6 +238,12 @@ int main(int argc, char *argv[]) {
|
|||||||
// Do Mac specific startup to get media keys working.
|
// Do Mac specific startup to get media keys working.
|
||||||
// This must go before QApplication initialisation.
|
// This must go before QApplication initialisation.
|
||||||
mac::MacMain();
|
mac::MacMain();
|
||||||
|
|
||||||
|
if (!QSysInfo::MacintoshVersion > QSysInfo::MV_10_8) {
|
||||||
|
// Work around 10.9 issue.
|
||||||
|
// https://bugreports.qt-project.org/browse/QTBUG-32789
|
||||||
|
QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QCoreApplication::setApplicationName("Clementine");
|
QCoreApplication::setApplicationName("Clementine");
|
||||||
|
Loading…
Reference in New Issue
Block a user