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

Fix #2813 #2824

Merged
merged 1 commit into from
Mar 10, 2024
Merged

Fix #2813 #2824

merged 1 commit into from
Mar 10, 2024

Conversation

scurest
Copy link
Contributor

@scurest scurest commented Mar 8, 2024

Fixes #2813.

In openConfigDialog, moves argc/argv to a higher scope so their lifetime is longer than the lifetime of the QApplication. (My first suggestion of static lifetime would have been wrong.)

In both openConfigDialog and openAboutDialog, makes sure argv is non-empty.

Both changes are to conform to Qt's docs.

Ensures the lifetime of argc/argv is greater than the QApplication,
and that argv is non-empty. This conforms with Qt docs.
Copy link
Owner

@gonetz gonetz left a comment

Choose a reason for hiding this comment

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

LGTM

@gonetz gonetz merged commit 3abe0c5 into gonetz:master Mar 10, 2024
10 checks passed
@scurest scurest deleted the iss2813 branch March 10, 2024 16:06
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.

GLideNUI/ConfigDialog: Qt issue with argc/argv
2 participants