/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
if (!source_parent.isValid())
return true;
- QModelIndex source_child = source_parent.child(source_row, 0);
+ QModelIndex source_child = source_parent.model()->index(source_row, 0, source_parent);
return (sourceModel()->data(source_child, NetworkModel::BufferIdRole).value<BufferId>() == _bufferId);
}