]> Some of my projects - localmylist.git/commitdiff
Workaround for QTBUG-30076.
authorAPTX <marek321@gmail.com>
Fri, 19 Apr 2013 13:22:37 +0000 (15:22 +0200)
committerAPTX <marek321@gmail.com>
Fri, 19 Apr 2013 13:22:37 +0000 (15:22 +0200)
localmylist/database.cpp

index 8e1accb161433fb51be72e56e5028261223ed583..37a3ea8eba55eba4355a328735f77cec63bbbd63 100644 (file)
@@ -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();