Fixes #520 - missing query icons
authorMarcus Eggenberger <egs@quassel-irc.org>
Fri, 6 Feb 2009 11:46:10 +0000 (12:46 +0100)
committerMarcus Eggenberger <egs@quassel-irc.org>
Fri, 6 Feb 2009 11:46:10 +0000 (12:46 +0100)
hopefully fixing #519 aswell

src/uisupport/bufferviewfilter.cpp

index a8b6fd2..dfad3c2 100644 (file)
@@ -377,13 +377,13 @@ QVariant BufferViewFilter::icon(const QModelIndex &index) const {
     return QVariant();
 
   QModelIndex source_index = mapToSource(index);
     return QVariant();
 
   QModelIndex source_index = mapToSource(index);
-  if(sourceModel()->data(index, NetworkModel::BufferTypeRole).toInt() != BufferInfo::QueryBuffer)
+  if(sourceModel()->data(source_index, NetworkModel::BufferTypeRole).toInt() != BufferInfo::QueryBuffer)
     return QVariant();
 
     return QVariant();
 
-  if(!sourceModel()->data(index, NetworkModel::ItemActiveRole).toBool())
+  if(!sourceModel()->data(source_index, NetworkModel::ItemActiveRole).toBool())
     return _userOfflineIcon;
 
     return _userOfflineIcon;
 
-  if(sourceModel()->data(index, NetworkModel::UserAwayRole).toBool())
+  if(sourceModel()->data(source_index, NetworkModel::UserAwayRole).toBool())
     return _userAwayIcon;
   else
     return _userOnlineIcon;
     return _userAwayIcon;
   else
     return _userOnlineIcon;