QUndoStack - wiring up a setdatapatterncommand
don't use the same dialog, always create a new one