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