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

Fix cppcheck warning

parent 9ce0afc0
......@@ -246,7 +246,7 @@ void AlarmDialog::fillCombo()
items << i18n("Before the to-do is due") << i18n("After the to-do is due");
}
} else {
if (mAllowEndReminders) {
if (mAllowBeginReminders) {
items << i18n("Before the event starts") << i18n("After the event starts");
}
if (mAllowEndReminders) {
......
......@@ -293,8 +293,7 @@ void IncidenceAttachment::showAttachment(QListWidgetItem *item)
void IncidenceAttachment::showContextMenu(const QPoint &pos)
{
QListWidgetItem *item = mAttachmentView->itemAt(pos);
const bool enable = item != nullptr;
const bool enable = mAttachmentView->itemAt(pos) != nullptr;
int numSelected = 0;
for (int itemIndex = 0; itemIndex < mAttachmentView->count(); ++itemIndex) {
......
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