NOISSUE Copy Image is not shown if the selection is > 1

This commit is contained in:
Ghosty 2021-12-03 16:29:28 +01:00
parent e9c52ec696
commit a97d0a36f4

View File

@ -278,6 +278,11 @@ ScreenshotsPage::~ScreenshotsPage()
void ScreenshotsPage::ShowContextMenu(const QPoint& pos)
{
auto menu = ui->toolBar->createContextMenu(this, tr("Context menu"));
if (ui->listView->selectionModel()->selectedRows().size() > 1) {
menu->removeAction( ui->actionCopy_Image );
}
menu->exec(ui->listView->mapToGlobal(pos));
delete menu;
}