mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-06 15:27:02 +01:00
Handle GLib logs ourself.
This commit is contained in:
parent
c010a66e3f
commit
95d5906995
@ -81,6 +81,13 @@ void LoadTranslation(const QString& prefix, const QString& path) {
|
||||
delete t;
|
||||
}
|
||||
|
||||
void GLog(const gchar* domain,
|
||||
GLogLevelFlags level,
|
||||
const gchar* message,
|
||||
gpointer user_data) {
|
||||
qDebug() << "GLOG" << message;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
#ifdef Q_OS_DARWIN
|
||||
// Do Mac specific startup to get media keys working.
|
||||
@ -97,6 +104,8 @@ int main(int argc, char *argv[]) {
|
||||
g_type_init();
|
||||
g_set_application_name(QCoreApplication::applicationName().toLocal8Bit());
|
||||
|
||||
g_log_set_default_handler(&GLog, NULL);
|
||||
|
||||
qRegisterMetaType<Directory>("Directory");
|
||||
qRegisterMetaType<DirectoryList>("DirectoryList");
|
||||
qRegisterMetaType<Subdirectory>("Subdirectory");
|
||||
|
Loading…
Reference in New Issue
Block a user