Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 28ab8225 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent d9327922
......@@ -144,7 +144,7 @@ void KCMLdap::slotAddHost()
KLDAP::LdapServer server;
KLDAP::AddHostDialog dlg(&server, dialogParent());
if (dlg.exec() && !server.host().isEmpty()) { //krazy:exclude=crashy
if (dlg.exec() && !server.host().trimmed().isEmpty()) { //krazy:exclude=crashy
new LDAPItem(mHostListView, server);
Q_EMIT changed(true);
......
......@@ -143,8 +143,9 @@ BlackListBalooEmailCompletionWidget::~BlackListBalooEmailCompletionWidget()
void BlackListBalooEmailCompletionWidget::slotSelectionChanged()
{
mSelectButton->setEnabled(!mEmailList->selectedItems().isEmpty());
mUnselectButton->setEnabled(!mEmailList->selectedItems().isEmpty());
bool selectionIsNotEmpty = !mEmailList->selectedItems().isEmpty();
mSelectButton->setEnabled(selectionIsNotEmpty);
mUnselectButton->setEnabled(selectionIsNotEmpty);
}
void BlackListBalooEmailCompletionWidget::load()
......
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