Commit e5171f92 authored by Laurent Montel's avatar Laurent Montel
Browse files

KMessageBox::sorry is deprecated in kf5.97

parent 31f700dc
Pipeline #210018 passed with stage
in 7 minutes and 7 seconds
......@@ -1205,7 +1205,7 @@ void Agenda::endItemAction()
d->mAgendaView->enableAgendaUpdate(true);
} else {
KMessageBox::sorry(this,
KMessageBox::error(this,
i18n("Unable to add the exception item to the calendar. "
"No change will be done."),
i18n("Error Occurred"));
......
......@@ -2145,7 +2145,7 @@ void AgendaView::slotIncidencesDropped(const QList<QUrl> &items, const QPoint &g
existingTodo->setAllDay(allDay);
changer()->modifyIncidence(existingTodoItem, oldTodo, this);
} else {
KMessageBox::sorry(this,
KMessageBox::error(this,
i18n("Unable to modify this to-do, "
"because it cannot be locked."));
}
......@@ -2154,7 +2154,7 @@ void AgendaView::slotIncidencesDropped(const QList<QUrl> &items, const QPoint &g
todo->setDtDue(newTime);
todo->setAllDay(allDay);
if (!changer()->addIncidence(todo, this)) {
KMessageBox::sorry(this, i18n("Unable to save %1 \"%2\".", i18n(todo->type()), todo->summary()));
KMessageBox::error(this, i18n("Unable to save %1 \"%2\".", i18n(todo->type()), todo->summary()));
}
}
}
......
......@@ -425,7 +425,7 @@ void IncidenceMonthItem::updateDates(int startOffset, int endOffset)
changer->createIncidence(newIncidence, item.parentCollection(), parentWidget());
changer->endAtomicOperation();
} else {
KMessageBox::sorry(parentWidget(),
KMessageBox::error(parentWidget(),
i18n("Unable to add the exception item to the calendar. "
"No change will be done."),
i18n("Error Occurred"));
......
Supports Markdown
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