Changeset View
Changeset View
Standalone View
Standalone View
src/identitydialog.cpp
Context not available. | |||||
153 | m_partEdit->setText(m_currentIdentity->getPartReason()); | 153 | m_partEdit->setText(m_currentIdentity->getPartReason()); | ||
---|---|---|---|---|---|
154 | m_kickEdit->setText(m_currentIdentity->getKickReason()); | 154 | m_kickEdit->setText(m_currentIdentity->getKickReason()); | ||
155 | 155 | | |||
156 | if(index == 0) | 156 | if(m_identityList.count() <= 1) | ||
157 | { | 157 | { | ||
158 | m_editBtn->setEnabled(false); | 158 | m_editBtn->setEnabled(false); | ||
159 | m_delBtn->setEnabled(false); | 159 | m_delBtn->setEnabled(false); | ||
Context not available. | |||||
260 | { | 260 | { | ||
261 | int current = m_identityCBox->currentIndex(); | 261 | int current = m_identityCBox->currentIndex(); | ||
262 | 262 | | |||
263 | if(current <= 0) | 263 | if(m_identityList.count() <= 1) | ||
264 | { | 264 | { | ||
265 | return; | 265 | return; | ||
266 | } | 266 | } | ||
Context not available. |