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

Workaround for issue creating object from first class in list #33

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

gcrone
Copy link
Contributor

@gcrone gcrone commented Aug 30, 2024

This solves issue #31 by first setting currentIndex to 1 before setting it to the correct value as setting 0 didn't have the desired side effect of setting Valid to true!!

@gcrone gcrone requested a review from alessandrothea August 30, 2024 14:06
ui->ComboBoxClass->setCurrentIndex ( index );
ui->ComboBoxClass->setCurrentIndex ( 1 ); // If index is 0 somehow this doesnt work
ui->ComboBoxClass->setCurrentIndex ( index ); // Now set it to the right value posssibly 0
// std::cout << "index=" << index
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe remove commented code?

@gcrone gcrone merged commit b5128af into develop Oct 2, 2024
1 check passed
@gcrone gcrone deleted the gcrone/first-class-hack branch October 2, 2024 14:34
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.

2 participants