/***************************************************************************
- * Copyright (C) 2005-2016 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
{
SettingsPage *sp = qobject_cast<SettingsPage *>(item->data(0, SettingsPageRole).value<QObject *>());
Q_ASSERT(sp);
- item->setDisabled(!Client::isConnected() && sp->needsCoreConnection());
+ bool disabledDueToConnection = !Client::isConnected() && sp->needsCoreConnection();
+ bool disabledDueToOwnChoice = !sp->isSelectable();
+ item->setDisabled(disabledDueToConnection || disabledDueToOwnChoice);
}