Skip to content

Clear invalid settings - #9359

Merged
nbolton merged 6 commits into
masterfrom
clearInvalidSettings
Jan 19, 2026
Merged

Clear invalid settings#9359
nbolton merged 6 commits into
masterfrom
clearInvalidSettings

Conversation

@sithlord48

Copy link
Copy Markdown
Member

fixes: #9333

  • Replace uses of Settings::value().isNull() => Settings::value().toString().isEmpty()
  • Remove unneeded QVariant() for Settings::setValue() calls that are removing value as QVariant() is the default value for Settings::setValue
  • Do not try to clean any internalConfig values in Settings::cleanSettings()
  • Remove any empty values when cleaning the settings or state settings
  • Have the Settings clean the settings file on startup

@sithlord48 sithlord48 added the ✨ enhancement A suggested change to improve functionality label Jan 18, 2026
@sithlord48
sithlord48 requested a review from a team January 18, 2026 14:46
@sithlord48 sithlord48 added the 🩹 fix This PR fixes a reported bug label Jan 18, 2026
@sithlord48
sithlord48 requested a review from nbolton as a code owner January 18, 2026 14:46
@sithlord48
sithlord48 force-pushed the clearInvalidSettings branch from 34e5ec3 to f701305 Compare January 18, 2026 16:00
@sithlord48
sithlord48 force-pushed the clearInvalidSettings branch from f701305 to 9436357 Compare January 19, 2026 03:40
@nbolton

This comment was marked as off-topic.

@nbolton nbolton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works fine with release build...

…ty setting values. This is because QVariant::isNull() no longer returns the internal types isNull() method. As a results "" is a non Null QVariant
…fault windowgeometry as it will be cast to QVariant automaticly on return
     Settings will call cleanSettigs and cleanStateSettings on start up to remove any invalid or empty values in our config
fixes: #9333
@nbolton
nbolton force-pushed the clearInvalidSettings branch from 9436357 to e0d07bf Compare January 19, 2026 22:40
@nbolton
nbolton enabled auto-merge (rebase) January 19, 2026 22:40
@nbolton
nbolton merged commit 281b3b8 into master Jan 19, 2026
34 checks passed
@nbolton
nbolton deleted the clearInvalidSettings branch January 19, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ enhancement A suggested change to improve functionality 🩹 fix This PR fixes a reported bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When server is running and working the Gui shows 'No IP detected'.

2 participants