Skip to content

Commit 207c92d

Browse files
authored
Catch exceptions copying from AlertDlg (#3367)
Fixed unhandled error pressing copy button on message box when another application has the clipboard locked (reported by Brendan) AlertDlg now uses ClipboardHelper to catch clipboard locked exceptions. This got broken when CommonAlertDlg base class was created in CommonUtil. "CommonAlertDlg.CopyMessage" was supposed to be overridden for Skyline's extra error handling.
1 parent 1ee5426 commit 207c92d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pwiz_tools/Skyline/Alerts/AlertDlg.cs

+4
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,9 @@ protected override void OnLoad(EventArgs e)
9696
base.OnLoad(e);
9797
GetModeUIHelper().OnLoad(this);
9898
}
99+
public override void CopyMessage()
100+
{
101+
ClipboardHelper.SetSystemClipboardText(this, GetTitleAndMessageDetail());
102+
}
99103
}
100104
}

0 commit comments

Comments
 (0)