Skip to content
Snippets Groups Projects
Commit ca560bb9 authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee
Browse files

iax: Disable IAX account creation

Refs #68848
parent 50ad86f7
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment