fixed -1 index.row() issue
authorKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 16 Dec 2010 22:59:17 +0000 (14:59 -0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 16 Dec 2010 22:59:17 +0000 (14:59 -0800)
bluetoothdevicemodel.cpp

index 4749a7e..91abac9 100644 (file)
@@ -37,6 +37,8 @@ int BluetoothDevicesModel::rowCount(const QModelIndex &) const
 
 QVariant BluetoothDevicesModel::data(const QModelIndex &index, int role) const
 {
+       if(index.row() < 0) return QVariant(); ///this is retarded but it has to be done.
+
        if(role == name)
        {
                QString rowData;