diff --git a/src/protocolmodel.cpp b/src/protocolmodel.cpp index 719e3cc179fe04a617d22353c93f591325a6101c..56b01d9875b0d7100c5ad5ee029e87fc9cc57f21 100644 --- a/src/protocolmodel.cpp +++ b/src/protocolmodel.cpp @@ -111,7 +111,8 @@ Qt::ItemFlags ProtocolModel::flags( const QModelIndex& index ) const //Account type cannot be changed, the daemon doesn't support that and crash //it was considered a client responsibility to disallow it. It is not worth //fixing - return Qt::ItemIsEnabled|Qt::ItemIsSelectable; + return (static_cast<Account::Protocol>(index.row()) == Account::Protocol::IAX ? + Qt::NoItemFlags : (Qt::ItemIsEnabled|Qt::ItemIsSelectable)); } bool ProtocolModel::setData( const QModelIndex& index, const QVariant &value, int role)