(myWorkshop->currentOperation());
QString anOperationKind = aCurOperation ? aCurOperation->getDescription()->operationId() : "";
-
bool isCommitted;
if (!myWorkshop->canStartOperation(theCmdId, isCommitted))
return;
if (aMessage.get()) {
setReentrantPreSelection(aMessage);
}
- else if (anOperationKind == theCmdId) // restore of selection only if the kind is the same
+ else if (anOperationKind.isEmpty() || anOperationKind == theCmdId) {
+ // restore of previous opeation is absent or new launched operation has the same kind
aFOperation->initSelection(aPreSelected);
-
+ }
workshop()->processLaunchOperation(aFOperation);
if (aFOperation) {