summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-21 22:15:03 +0200
committerMontel Laurent <[email protected]>2017-08-21 22:15:03 +0200
commite1e899ce008d283480de27affb3ffb00be65c01f (patch)
tree95a4a2c4712809be3964037fd52fe9206ceac213
parentc2d1fbbec56b68913fe65ee079ef74cc9318bb44 (diff)
USe isEmpty
-rw-r--r--src/dialog/knoteselectednotesdialog.cpp2
-rw-r--r--src/print/knoteprintselectednotesdialog.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/dialog/knoteselectednotesdialog.cpp b/src/dialog/knoteselectednotesdialog.cpp
index b8cde6e..18c727e 100644
--- a/src/dialog/knoteselectednotesdialog.cpp
+++ b/src/dialog/knoteselectednotesdialog.cpp
@@ -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);
}
diff --git a/src/print/knoteprintselectednotesdialog.cpp b/src/print/knoteprintselectednotesdialog.cpp
index 668ad9d..3182bd3 100644
--- a/src/print/knoteprintselectednotesdialog.cpp
+++ b/src/print/knoteprintselectednotesdialog.cpp
@@ -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);
}