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 e1e899ce authored by Laurent Montel's avatar Laurent Montel 😁

USe isEmpty

parent c2d1fbbe
......@@ -59,7 +59,7 @@ KNoteSelectedNotesDialog::~KNoteSelectedNotesDialog()
void KNoteSelectedNotesDialog::slotSelectionChanged()
{
const bool hasSelection = (mListNotes->selectedItems().count() > 0);
const bool hasSelection = (!mListNotes->selectedItems().isEmpty());
mOkButton->setEnabled(hasSelection);
}
......
......@@ -85,7 +85,7 @@ KNotePrintSelectedNotesDialog::~KNotePrintSelectedNotesDialog()
void KNotePrintSelectedNotesDialog::slotSelectionChanged()
{
const bool hasSelection = (mListNotes->selectedItems().count() > 0);
const bool hasSelection = (!mListNotes->selectedItems().isEmpty());
mUser1Button->setEnabled(hasSelection);
mButtonBox->button(QDialogButtonBox::Ok)->setEnabled(hasSelection);
}
......
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