Change the timeout type
authorwrsskyzhang <wen.zhang@windriver.com>
Wed, 13 Jul 2011 02:04:11 +0000 (22:04 -0400)
committerwrsskyzhang <wen.zhang@windriver.com>
Wed, 13 Jul 2011 02:04:11 +0000 (22:04 -0400)
bluetooth-qt/bluetoothdevicemodel.cpp

index f765168..256142e 100644 (file)
@@ -131,7 +131,7 @@ void BluetoothDevicesModel::setDiscoverableTimeout(int timeout)
 {
        if(adapter)
        {
-               QDBusReply<void> reply = adapter->SetProperty("DiscoverableTimeout", QDBusVariant(timeout));
+               QDBusReply<void> reply = adapter->SetProperty("DiscoverableTimeout", QDBusVariant((uint)timeout));
                if(!reply.isValid())
                {
                        qDebug()<<"error setting discoverable timeout: "<<reply.error().message();