Gui: [skip ci] let view provider to decide to whether open a transaction on double-click

The sketcher view provider doesn't need a transaction on double-click or otherwise shows a useless entry in the undo dialog which when undoing leads to weird behaviour
This commit is contained in:
wmayer
2020-10-24 15:37:04 +02:00
parent a305b3b53f
commit 067b51b835
5 changed files with 46 additions and 15 deletions

View File

@@ -280,6 +280,11 @@ void ViewProviderDocumentObject::show(void)
}
}
const char* ViewProviderDocumentObject::getTransactionText() const
{
return QT_TRANSLATE_NOOP("Command", "Edit");
}
void ViewProviderDocumentObject::updateView()
{
if(!pcObject || testStatus(ViewStatus::UpdatingView))