projects
/
profile
/
ivi
/
bluetooth-qt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c58947
)
fixed -1 index.row() issue
author
Kevron Rees
<kevron_m_rees@linux.intel.com>
Thu, 16 Dec 2010 22:59:17 +0000
(14:59 -0800)
committer
Kevron Rees
<kevron_m_rees@linux.intel.com>
Thu, 16 Dec 2010 22:59:17 +0000
(14:59 -0800)
bluetoothdevicemodel.cpp
patch
|
blob
|
history
diff --git
a/bluetoothdevicemodel.cpp
b/bluetoothdevicemodel.cpp
index
4749a7e
..
91abac9
100644
(file)
--- a/
bluetoothdevicemodel.cpp
+++ b/
bluetoothdevicemodel.cpp
@@
-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;