X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferviewfilter.cpp;h=a4ece414ffa8907f8919c3743fe3f5206c3c4492;hp=af1686e0a8033607332b14187f203242044fd611;hb=8a91d275138941cc91704dd462efaf70c5f9732c;hpb=1e89816f3a0fbc6c6045ee244df752bd4f403aec diff --git a/src/uisupport/bufferviewfilter.cpp b/src/uisupport/bufferviewfilter.cpp index af1686e0..a4ece414 100644 --- a/src/uisupport/bufferviewfilter.cpp +++ b/src/uisupport/bufferviewfilter.cpp @@ -171,19 +171,17 @@ QVariant BufferViewFilter::foreground(const QModelIndex &index) const { QVariant otherActivity = s.value("otherActivityFG", QVariant(QColor(Qt::darkGreen))); if(!index.data(NetworkModel::ItemActiveRole).toBool()) - return inactiveActivity.value(); + return inactiveActivity; Buffer::ActivityLevel activity = (Buffer::ActivityLevel)index.data(NetworkModel::BufferActivityRole).toInt(); if(activity & Buffer::Highlight) - return highlightActivity.value(); + return highlightActivity; if(activity & Buffer::NewMessage) - return newMessageActivity.value(); + return newMessageActivity; if(activity & Buffer::OtherActivity) - return otherActivity.value(); - - return noActivity.value(); - - // FIXME:: make colors configurable; + return otherActivity; + + return noActivity; }