[QtMoko PC] bluetooth segfault patch

2013-05-05 Thread Ivan Matveev
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 reply;
 QList args;
 args << record;

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [QtMoko PC] bluetooth segfault patch

2013-05-05 Thread Radek Polak
On Sunday, May 05, 2013 10:53:16 AM Ivan Matveev wrote:

> 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.

Hi,
thanks for the patch. It's applied now.

Regards

Radek

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community