Merge "Set RESULT_OK on exit via copy button." into sc-dev