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

PICARD-1405: Do not allow rich text input in script editors #1032

Merged

Conversation

phw
Copy link
Member

@phw phw commented Nov 12, 2018

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

The script editors in Picard currently allow pasting richt text content. See e.g. this example with pasted content from musicbrainz.org:

grafik

While the pasted content is converted to plain text on saving, this behavior is confusing when pasting.

Solution

Set QTextEdit.setAcceptRichText(False). This prevents the user to paste rich text (it will be converted to plain text), but does not effect the formatted display of syntax highlighting.

Action

@phw phw merged commit 1078251 into metabrainz:master Nov 12, 2018
@phw phw deleted the PICARD-1405-disable-script-rich-text-input branch November 12, 2018 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants