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 loading output/device setting in Playback Settings #6087

Merged
merged 2 commits into from
Jun 14, 2018
Merged

Fix loading output/device setting in Playback Settings #6087

merged 2 commits into from
Jun 14, 2018

Conversation

jonaski
Copy link
Contributor

@jonaski jonaski commented Jun 14, 2018

Currently there is a bug in the Playback Settings. It does successfully save the selected value for output device when you close the settings, but it does not load it if it is set to a plain sink without a device.
This is because in PlaybackSettingsPage::Load() it's comparing a invalid QVariant value to a the loaded device which is a empty string (details.device_property_value == device) which does not match.

  • Load device setting as a QVariant instead of a QString.
  • Set empty string for sinks with default devices and auto sink (optional)

The output device setting is now loaded. Tested on Linux. Also tested on the Qt 5 branch. On Windows this was not broken before, since there are no sinks without devices, but I've also tested to cross build and run on windows just to make sure it still works.

Fixes #5241

@hatstand hatstand merged commit a397871 into clementine-player:master Jun 14, 2018
@jonaski jonaski deleted the outputdevice branch September 23, 2018 22:45
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.

Clementine forgets audio output preference
2 participants