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

CSS bug in ConversationView #305

Merged
merged 4 commits into from
Apr 12, 2019
Merged

CSS bug in ConversationView #305

merged 4 commits into from
Apr 12, 2019

Conversation

sssoleileraaa
Copy link
Contributor

@sssoleileraaa sssoleileraaa commented Apr 12, 2019

Description

Summary of Changes

  • We now do not add CSS to the ConversationView widget. There is a comment in the class docstring that points to Segfault when runing without sdc-client home dir option #304 saying not to add CSS here.

  • I uncommented a line of code that loads sdclient.css and its corresponding comment about QTBUG-69204 - Upstream Qt stylesheet bug causes segmentation faults #273 from main.py since that is not actually where the problem seems to be happening. There's something about the way we have created our ConversationView that makes adding CSS to that widget unstable. There are upcoming PRs for refactoring and styling the ConversationView, so I feel fine with knowing only this much for now.

  • I moved remaining CSS from old code into class variables, which unifies the new way of organizing CSS. This is just a refactor to make it easier to debug next time. Next CSS refactor will probably move these strings into a CSS file.

Test

See STR in #304 (basically just run the client without passing the sdc-home option and select a source to verify that a segfault does not occur.

Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worked as advertised, thanks @creviera!

@@ -573,8 +578,18 @@ class MainView(QWidget):
and main context view).
"""

CSS = '''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@redshiftzero redshiftzero merged commit 496c1b3 into master Apr 12, 2019
@redshiftzero redshiftzero deleted the issue-304 branch April 12, 2019 22:02
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