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

PR: Fix unclickable update message box #3642

Merged
merged 3 commits into from
Nov 3, 2016

Conversation

mariacamilarg
Copy link
Contributor

Fixes #3609

@goanpeca goanpeca changed the title found out what made the box unclickable PR: found out what made the box unclickable Nov 3, 2016
@goanpeca
Copy link
Contributor

goanpeca commented Nov 3, 2016

@mariacamilaremolinagutierrez

Awesome :-p, some advice

A title like found out what made the box unclickable is not very explanatory :-p

Something like Fix unclickable update message box or something :-p

@mariacamilarg
Copy link
Contributor Author

I found out what what making the box unclickable. However I don't quite understand why. The box is an extension of QMessageBox called MessageCheckBox. What it does is that it situates a checkbox at the bottom on the box to know if the user whats to check updates at starup. This was not appearing before. Nos it looks like this:

image

The problem was that we were putting an Information icon:

box.setIcon(QMessageBox.Information)

And this for some reason that I could not figure blocks the box and disables the checkbox (it stops appearing). And looks like the user reported in the issue:

image

So for now and for the new release I thinks is better that it has no info icon, than that it is unclickable. However I still don't get why other methods from the super class as for example:

box.setDefaultButton(QMessageBox.Ok) box.setWindowTitle(_("Spyder updates"))

are working. This is intriguing...

@mariacamilarg
Copy link
Contributor Author

@goanpeca I think you were working on this, do you have any idea why this setIcon() function is not working properly? Could it be is a QT problem when one generates a new class that extends from QMessageBox?

@mariacamilarg mariacamilarg changed the title PR: found out what made the box unclickable PR: Fix unclickable update message box Nov 3, 2016
@ccordoba12
Copy link
Member

@mariacamilaremolinagutierrez, you just removed all blank spaces from mainwindow (just to comment one line :-).

Please revert that, and just comment/remove the box.setIcon line :-)

@goanpeca
Copy link
Contributor

goanpeca commented Nov 3, 2016

@mariacamilaremolinagutierrez, the addition of a checkbox was a bit hackish, I think the best would be to create a new MessageBox from scratch that does not add stuff to a normal checkbox. For the moment I thin its ok to no have the info icon, but lets open an issue to keep this in the radar

@ccordoba12
Copy link
Member

@mariacamilaremolinagutierrez, so please add a comment above the commented line saying that that line is commented because it freezes the dialog, and that it solves Issue #3609.

@ccordoba12 ccordoba12 added this to the v3.0.2 milestone Nov 3, 2016
@mariacamilarg mariacamilarg changed the base branch from master to 3.x November 3, 2016 08:39
@mariacamilarg
Copy link
Contributor Author

@goanpeca I agree! It is still really weird why this happens but then I'll try to make the box from scratch after I finish my other issues. Thanks :)

@ccordoba12 It has the comment now :)

@ccordoba12
Copy link
Member

Thanks a lot @mariacamilaremolinagutierrez! Merging :-)

@ccordoba12 ccordoba12 merged commit 04c781f into spyder-ide:3.x Nov 3, 2016
ccordoba12 added a commit that referenced this pull request Nov 3, 2016
@mariacamilarg mariacamilarg deleted the fixes_issue_3609 branch November 8, 2016 07:23
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.

4 participants