Skip to content

Commit

Permalink
MultiVNCApp: don't use wxDebugReport on MacOS
Browse files Browse the repository at this point in the history
MacOS has CrashReporter built in, so no need for this.

re #222
  • Loading branch information
bk138 committed Nov 26, 2024
1 parent e137286 commit 52eb48f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MultiVNCApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,12 @@ void MultiVNCApp::OnUnhandledException()

void MultiVNCApp::OnFatalException()
{
#ifndef __WXMAC__ // handled by CrashReporter on MacOS
int answer = wxMessageBox(_("Ouch! MultiVNC crashed. This should not happen. Do you want to generate a bug report?"), _("MultiVNC crashed"),
wxICON_ERROR | wxYES_NO, NULL);
if(answer == wxYES)
genDebugReport(wxDebugReport::Context_Exception);
#endif
}


Expand Down

0 comments on commit 52eb48f

Please sign in to comment.