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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user