Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make copying crash ID simple #25

Merged
merged 2 commits into from
Apr 6, 2021
Merged

Conversation

fmoc
Copy link
Contributor

@fmoc fmoc commented Mar 12, 2021

This PR implements what was suggested in owncloud/client#8130:

screenshot_2021-03-12_23-45-20

The ID is a clickable link. The corresponding click handler copies the ID into the user's clipboard. It seemed like the easiest way to integrate this feature in the current UX, otherwise a button would need to be added somewhere. Alternatives would've been a context menu entry, or making the entire label clickable.

The PR also contains a commit that fixes a CMake policy warning, making the project compatible with the latest CMake releases.

Note that I could not compile the library without patching breakpad, which used a struct ucontext that doesn't seem to exist in both the system ucontext.h and sys/ucontext.h and the bundled headers. Instead, a ucontext_t is typedef'd directly from said struct. In order to make the compiler happy (i.e., provide its full definition), I had to swap all occurrences of struct ucontext with ucontext_t. I might have to file a second PR to fix this, but I'm not sure why this only seems to affect my own build.

@dschmidt dschmidt merged commit 06f28a7 into dschmidt:master Apr 6, 2021
@fmoc fmoc deleted the clickable-crash-id branch April 7, 2021 16:02
fmoc pushed a commit to owncloud/client that referenced this pull request Apr 7, 2021
This enables a "click to copy crash report ID" feature in owncloud_crash_reporter.

See dschmidt/libcrashreporter-qt#25 for more information.
fmoc pushed a commit to owncloud/client that referenced this pull request Apr 8, 2021
This enables a "click to copy crash report ID" feature in owncloud_crash_reporter.

See dschmidt/libcrashreporter-qt#25 for more information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants