VCS: use context menu actions of TextEditor in VcsBaseEditor

Change-Id: I1947190ad0147d15cd4e95c5dff102b795a78bfc
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
David Schulz
2021-10-12 16:25:50 +02:00
parent 9ea3d61aaa
commit 1a0c937485

View File

@@ -984,8 +984,10 @@ void VcsBaseEditorWidget::contextMenuEvent(QContextMenuEvent *e)
handler->fillContextMenu(menu, d->m_parameters->type);
}
}
if (!menu)
menu = createStandardContextMenu();
if (!menu) {
menu = new QMenu;
appendStandardContextMenuActions(menu);
}
switch (d->m_parameters->type) {
case LogOutput: // log might have diff
case DiffOutput: {