mirror of
https://github.com/wf-group/wfview
synced 2026-08-13 17:32:59 -04:00
Fix a couple of buttons and stop editing of memories when disabled
This commit is contained in:
parent
0dccfcb719
commit
6491637abc
5 changed files with 17 additions and 5 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue