X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferviewfilter.cpp;h=cf3d4685a442bb4c928dfff8fbfd6ef5caf80f5b;hp=139ca894cd41da2fe7f0b76834389bfa48bd0e68;hb=f9fc50a5e043668a2525a6c0903ea339d4ba05b7;hpb=50706d89d4d60e258ebb6873d3778383621898e4 diff --git a/src/uisupport/bufferviewfilter.cpp b/src/uisupport/bufferviewfilter.cpp index 139ca894..cf3d4685 100644 --- a/src/uisupport/bufferviewfilter.cpp +++ b/src/uisupport/bufferviewfilter.cpp @@ -95,7 +95,7 @@ void BufferViewFilter::removeBuffer(const QModelIndex &index) { bool lastBuffer = (rowCount(index.parent()) == 1); uint netId = index.data(NetworkModel::NetworkIdRole).toUInt(); - uint bufferuid = index.data(NetworkModel::BufferUidRole).toUInt(); + uint bufferuid = index.data(NetworkModel::BufferIdRole).toUInt(); if(buffers.contains(bufferuid)) { buffers.remove(bufferuid); @@ -128,7 +128,7 @@ bool BufferViewFilter::filterAcceptBuffer(const QModelIndex &source_bufferIndex) // return false; if((mode & FullCustom)) { - uint bufferuid = source_bufferIndex.data(NetworkModel::BufferUidRole).toUInt(); + uint bufferuid = source_bufferIndex.data(NetworkModel::BufferIdRole).toUInt(); return buffers.contains(bufferuid); }