Fix issue in context menu details list. QUndoStack endMacro() did not match
beginMacro(). --HG-- branch : develop
This commit is contained in:
parent
a50df3a33c
commit
0599583923
|
@ -229,12 +229,14 @@ void VWidgetDetails::ShowContextMenu(const QPoint &pos)
|
|||
select = true;
|
||||
qApp->getUndoStack()->beginMacro(tr("select all details"));
|
||||
ToggleSectionDetails(select);
|
||||
qApp->getUndoStack()->endMacro();
|
||||
}
|
||||
else if (selectedAction == actionSelectNone)
|
||||
{
|
||||
select = false;
|
||||
qApp->getUndoStack()->beginMacro(tr("select none details"));
|
||||
ToggleSectionDetails(select);
|
||||
qApp->getUndoStack()->endMacro();
|
||||
}
|
||||
else if (selectedAction == actionInvertSelection)
|
||||
{
|
||||
|
@ -253,7 +255,7 @@ void VWidgetDetails::ShowContextMenu(const QPoint &pos)
|
|||
qApp->getUndoStack()->push(togglePrint);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
qApp->getUndoStack()->endMacro();
|
||||
qApp->getUndoStack()->endMacro();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user