Commit a64adaf2 authored by Laurent Montel's avatar Laurent Montel 😁

Reduce menu size as discussed with David

parent 9d79a34a
......@@ -563,11 +563,15 @@ void AttachmentControllerBase::showContextMenu()
menu->addAction(d->propertiesContextAction);
}
menu->addSeparator();
menu->addAction(d->selectAllAction);
menu->addSeparator();
menu->addAction(d->addContextAction);
const int nbAttachment = d->model->rowCount();
if (nbAttachment != numberOfParts) {
menu->addSeparator();
menu->addAction(d->selectAllAction);
}
if (numberOfParts == 0) {
menu->addSeparator();
menu->addAction(d->addContextAction);
}
menu->exec( QCursor::pos() );
delete menu;
}
......
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