-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 setting window title as modified #11542
base: develop
Are you sure you want to change the base?
Fix setting window title as modified #11542
Conversation
Noticed that this fix works, but Qt gives a warning to the console: Even if |
https://doc.qt.io/qt-5/qwidget.html#windowModified-prop
The placeholder should be in the window title no matter what. |
c2b6663
to
b3c4c25
Compare
I made a simple fix for this where the title is set to the placeholder first, and then to the actual one. It was the only way I could find to go around this (I'm pretty sure it's some kind of Qt bug). Also tried the title setter as a signal/slot (tried both: settings modified and/or setting the title), but that didn't solve the issue either. |
Is this ready to go? |
Yes. If everything works for you as well. |
b3c4c25
to
2653dcf
Compare
When creating a new entry to database, the window title does not include an asterisk character. When going to Settings / Password generator, the title appears correctly.
Fixes #11540
Testing strategy
Manually. Switching tab to a closed database, or Settings / Password generator removes the asterisk character from the title.
Type of change