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

closes #125 Fix COSMOS issues for qtbindings 4.8.6.2 #128

Merged
2 commits merged into from
May 8, 2015

Conversation

ghost
Copy link

@ghost ghost commented May 8, 2015

@jmthomas Please review

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 89.54% when pulling 236610d on support_new_qtbindings into 0afae00 on master.

result = nil
Qt.execute_in_main_thread(true, 0.05) do
window = nil
window = get_cmd_tlm_gui_window() if get_cmd_tlm_gui_window()
msg = Qt::MessageBox.new(window)
msg.setIcon(icon)
msg.setIcon(Qt::MessageBox::Warning)
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this actually an issue or just an enhancement?

Copy link
Author

Choose a reason for hiding this comment

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

Accessing the Qt Constant outside of GUI context was invoking method missing and potentially a problem (It raised my new exception).

@jmthomas
Copy link
Contributor

jmthomas commented May 8, 2015

Looks good. Surprised we never had an issue with the TlmGrapher fix. We definitely call that code in our tests.

@jmthomas
Copy link
Contributor

jmthomas commented May 8, 2015

So 4.8.6.2 has my method caching in it too?

@ghost
Copy link
Author

ghost commented May 8, 2015

Yes. 4.8.6.2 has the method caching and the checks for making sure we're in the main thread. I bumped the gemspec to require at least 4.8.6.2 from now on. The improvements justify the requirement. Expect to get some problem reports from people installing older COSMOS with the current qtbindings and then having programs crash because they are now detecting the improper GUI context outside the main thread. Just need to tell them they have to either downgrade qtbindings to 4.8.6.1 (which sucks because your performance improvements are a big deal), or upgrade COSMOS.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 89.54% when pulling bdd1359 on support_new_qtbindings into 0afae00 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 89.54% when pulling bdd1359 on support_new_qtbindings into 0afae00 on master.

ghost pushed a commit that referenced this pull request May 8, 2015
closes #125 Fix COSMOS issues for qtbindings 4.8.6.2
@ghost ghost merged commit 14550d1 into master May 8, 2015
@ghost ghost deleted the support_new_qtbindings branch May 8, 2015 20:33
ghost pushed a commit that referenced this pull request Jun 19, 2021
Merge in COSMOSEE/base from fix-scriptrunner-tests to master

* commit '34116621ea9683ecfdbf54c0f7add8caba48a7c3':
  fix scriptrunner tests
  add headers arg to api functions
This pull request was closed.
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.

3 participants