[QtMoko PC] bluetooth segfault patch

Ivan Matveev imatveev13 at nm.ru
Sun May 5 10:53:16 CEST 2013


Hi

Thank you Radek for great instructions for PC build. 
There is no bluetooth on my PC so qpe segfaults on start. Here is a
patch to fix it.

diff --git a/qtopiacore/qt b/qtopiacore/qt
--- a/qtopiacore/qt
+++ b/qtopiacore/qt
@@ -1 +1 @@
-Subproject commit e1d064ee4b4046d9b52eae073eea4a3bed7dd6c7
+Subproject commit e1d064ee4b4046d9b52eae073eea4a3bed7dd6c7-dirty
diff --git
a/src/libraries/qtopiacomm/bluetooth/qbluetoothabstractservice.cpp b/
src/libraries/qtopiacomm/bluetooth/qbluetoothabstractservice.cpp index
e43c485..00ffae8 100644 ---
a/src/libraries/qtopiacomm/bluetooth/qbluetoothabstractservice.cpp +++
b/src/libraries/qtopiacomm/bluetooth/qbluetoothabstractservice.cpp @@
-266,6 +266,9 @@ void
QBluetoothAbstractServicePrivate::handleError(const QDB usError &error)

 quint32 QBluetoothAbstractServicePrivate::registerRecord(const QString
 &record) {
+    if(!m_ifc)
+       return 0;
+
     QDBusReply<quint32> reply;
     QList<QVariant> args;
     args << record;



More information about the community mailing list