Commit 6ac060ed authored by Christian Christiansen's avatar Christian Christiansen Committed by Peter Simonsson

Allow any identity to be deleted (until one left)

Summary: Allow any identity profiles to be removed, until there is only one identity remaining. Beforehand, the first identity could never be removed.

Reviewers: #konversation, psn

Reviewed By: #konversation, psn

Subscribers: #konversation

Tags: #konversation

Differential Revision: https://phabricator.kde.org/D28471
parent 74f707e2
......@@ -153,7 +153,7 @@ namespace Konversation
m_partEdit->setText(m_currentIdentity->getPartReason());
m_kickEdit->setText(m_currentIdentity->getKickReason());
if(index == 0)
if(m_identityList.count() <= 1)
{
m_editBtn->setEnabled(false);
m_delBtn->setEnabled(false);
......@@ -260,7 +260,7 @@ namespace Konversation
{
int current = m_identityCBox->currentIndex();
if(current <= 0)
if(m_identityList.count() <= 1)
{
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment