Commit fc637cba authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use new method ->isEmpty()

parent 55e716a2
......@@ -48,7 +48,7 @@ set(KHOLIDAYS_LIB_VERSION "5.4.40")
set(AKONADICALENDAR_LIB_VERSION "5.4.40")
set(KONTACTINTERFACE_LIB_VERSION "5.4.40")
set(KMIME_LIB_VERSION "5.4.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.4.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.4.43")
set(AKONADI_VERSION "5.4.40")
set(KDEPIM_LIB_VERSION "${KDEPIM_VERSION_NUMBER}")
......
......@@ -139,7 +139,7 @@ void NoteEditDialog::writeConfig()
void NoteEditDialog::slotUpdateButtons()
{
if (mNoteTitle->text().trimmed().isEmpty() && mNoteText->toPlainText().isEmpty()) {
if (mNoteTitle->text().trimmed().isEmpty() && mNoteText->isEmpty()) {
mOkButton->setEnabled(false);
} else {
mOkButton->setEnabled(true);
......@@ -174,7 +174,7 @@ void NoteEditDialog::accept()
return;
}
if (mNoteTitle->text().isEmpty() && mNoteText->toPlainText().isEmpty()) {
if (mNoteTitle->text().isEmpty() && mNoteText->isEmpty()) {
qCDebug(KORGANIZER_LOG) << " empty note do not save it";
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