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

Fix menu entry position

parent bd4d07e2
......@@ -593,6 +593,11 @@ void AttachmentControllerBase::showContextMenu()
if(numberOfParts>0) {
menu->addAction(d->removeContextAction);
}
if(numberOfParts == 1) {
if (!d->selectedParts.first()->url().isEmpty()) {
menu->addAction(d->reloadAttachmentAction);
}
}
if(numberOfParts == 1) {
menu->addAction(d->saveAsContextAction);
menu->addAction(d->propertiesContextAction);
......@@ -608,12 +613,6 @@ void AttachmentControllerBase::showContextMenu()
menu->addAction(d->addContextAction);
}
if(numberOfParts == 1) {
if (!d->selectedParts.first()->url().isEmpty()) {
menu->addSeparator();
menu->addAction(d->reloadAttachmentAction);
}
}
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