-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Can't Save Shortcut Data #6666
Comments
@davidebeatrici I strongly suspect this is due to some difference introduced with Qt 6 👀 |
The error is usually caused by the data type not being registered, but we're doing that: Lines 71 to 87 in edd4588
mumble/src/mumble/Settings.cpp Lines 513 to 521 in edd4588
One difference I'm aware of is the deprecation of #if QT_VERSION < 0x060000
qRegisterMetaTypeStreamOperators< ChannelTarget >("ChannelTarget");
qRegisterMetaTypeStreamOperators< PluginSetting >("PluginSetting");
qRegisterMetaTypeStreamOperators< ShortcutTarget >("ShortcutTarget");
#endif From https://www.qt.io/blog/whats-new-in-qmetatype-qvariant:
I suspect we may have to implement the stream operators in the class ourselves. And, if that's actually the case, I would expect the same issue with |
Description
The data field of a shortcut (for example Whisper/shout -> Subchannel #1) will not be saved after restarting. After restarting the data field says "empty" instead of Subchannel #1. The rest of the shortcut is stored correctly.
The command line prompts this when pressing apply :
QVariant::save: unable to save type 'ShortcutTarget' (type id: 65538).
The command line prompts this on startup:
./mumble <X>2024-12-11 22:31:02.804 Loading settings from "/home/coms/.config/Mumble/Mumble/mumble_settings.json" <W>2024-12-11 22:31:02.804 QVariant::load: unable to load type 65538. <W>2024-12-11 22:31:02.804 QVariant::load: unable to load type 65538.
Steps to reproduce
Mumble version
1.6.0
Mumble component
Client
OS
Linux
Reproducible?
Yes
Additional information
Mumble was compiled using the latest available code from git on a raspbian on RPI 5.
Using this manual https://wikiarchiv.natenom.de/mumble/entwicklung/mumble-selbst-bauen.html
Relevant log output
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: