connect(ui.hideInactiveBuffers, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
connect(ui.networkSelector, SIGNAL(currentIndexChanged(int)), this, SLOT(widgetHasChanged()));
connect(ui.minimumActivitySelector, SIGNAL(currentIndexChanged(int)), this, SLOT(widgetHasChanged()));
-
- // FIXME: (see FIXME in BufferViewFilter::filterAcceptBuffer())
- ui.minimumActivitySelector->setEnabled(false);
}
BufferViewSettingsPage::~BufferViewSettingsPage() {
#include <QColor>
+#include "buffermodel.h"
#include "client.h"
#include "networkmodel.h"
bool BufferViewFilter::filterAcceptBuffer(const QModelIndex &source_bufferIndex) const {
if(!_config)
return true;
-
+
if(!(_config->allowedBufferTypes() & (BufferInfo::Type)source_bufferIndex.data(NetworkModel::BufferTypeRole).toInt()))
return false;
if(_config->hideInactiveBuffers() && !source_bufferIndex.data(NetworkModel::ItemActiveRole).toBool())
return false;
- // FIXME: this can result in bad loops :(
- // if(_config->minimumActivity() > source_bufferIndex.data(NetworkModel::BufferActivityRole).toInt())
- // return false;
+ if(_config->minimumActivity() > source_bufferIndex.data(NetworkModel::BufferActivityRole).toInt()) {
+ if(!Client::bufferModel()->standardSelectionModel()->isSelected(source_bufferIndex))
+ return false;
+ }
BufferId bufferId = sourceModel()->data(source_bufferIndex, NetworkModel::BufferIdRole).value<BufferId>();
return _config->bufferList().contains(bufferId);
quasselVersion = "0.2.0-beta1-pre";
quasselDate = "2008-04-14";
- quasselBuild = 735;
+ quasselBuild = 736;
//! Minimum client build number the core needs
clientBuildNeeded = 731;