Fix a couple of buttons and stop editing of memories when disabled

This commit is contained in:
Phil Taylor 2023-09-28 15:44:49 +01:00
parent 0dccfcb719
commit 6491637abc
5 changed files with 17 additions and 5 deletions

View file

@ -11,7 +11,7 @@ tableWidget::tableWidget(QWidget *parent): QTableWidget(parent)
void tableWidget::mouseReleaseEvent(QMouseEvent *event)
{
if(event->button() == Qt::RightButton)
if(event->button() == Qt::RightButton && editingEnabled)
{
QMenu menu;
QAction *add= menu.addAction("Add Item");