From: APTX Date: Fri, 19 Apr 2013 13:22:37 +0000 (+0200) Subject: Workaround for QTBUG-30076. X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=7e83cf6e46069f86f63d994437b8044a868277ec;p=localmylist.git Workaround for QTBUG-30076. --- diff --git a/localmylist/database.cpp b/localmylist/database.cpp index 8e1accb..37a3ea8 100644 --- a/localmylist/database.cpp +++ b/localmylist/database.cpp @@ -1369,6 +1369,12 @@ bool Database::connect() QObject::connect(d->db.driver(), SIGNAL(notification(QString)), this, SLOT(handleNotification(QString))); #endif + +// Workaround for https://bugreports.qt-project.org/browse/QTBUG-30076 +#if QT_VERSION <= QT_VERSION_CHECK(4, 8, 4) || (QT_VERSION > QT_VERSION_CHECK(5, 0, 0) && QT_VERSION <= QT_VERSION_CHECK(5, 0, 2)) + exec("SET standard_conforming_strings = 'off'"); +#endif + subscribeToNotifications(); emit connected();