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
Allow disabling the public-server-list #4316
Conversation
Not entirely sure but I think your changes are conflicting with mine which introduced some usages of the bool you renamed. I think you need to rebase from master and rename these too. |
Yea, saw that, im on it |
79a0b2a
to
ce066e6
Compare
I think this should be it. However when i check the option and reopen the connection menu, mumble crashes. The Warning that the public list is disabled is printed. Can anyone replicate this? |
My guess is that since mumble/src/mumble/ConnectDialog.cpp Lines 1418 to 1423 in b1e8910
Then this gets executed because there are public servers in the list. But since Disabling the public list should probably also clear Edit: Eh, probably not exactly that since that function shouldn't be called but it smells like that null pointer is dereferenced. |
Jep, its a segmentation fault. mumble/src/mumble/ConnectDialog.cpp Lines 972 to 986 in b1e8910
if i add an "&& !g.s.bDisablePublicList" to the if it works fine. Would that also be solved by clearing the qlPublicServers? (Besides it being a good idea anyways) |
The text change is probably calling this slot. mumble/src/mumble/ConnectDialog.cpp Lines 1822 to 1833 in b1e8910
Which is then trying to filter the public server list and dereferencing the nullpointer here. mumble/src/mumble/ConnectDialog.cpp Lines 1523 to 1525 in b1e8910
Also it looks like I used spaces for tabs there |
So, i dont really know what the best approach would be. I could add a toggled function to the checkbox, or i think it could work if i clear it in the NetworkConfig::save(). I dont really feel comfortable with both, any suggestions? |
I would check if the public list is disabled before calling |
ce066e6
to
020c8b5
Compare
alright, added the check, since im new to qt im still struggling with adding the action to the checkbox, I will try to do this on the weekend :) |
After messing a bit around i came to the conclusion that qlPublicServers should be anyway destroyed after the ConnectDialog closes/gets destroyed. So i think it shouldnt be necessary to do that. Then the pr should be ready like it is? |
Oh and for your commit message, I think this slightly altered version would be better (plus I fixed a few typos):
|
It shouldn't be cleared when the dialog gets closed as that would require the server list to be downloaded every time the connect dialog is opened, which is unneccessary. But as I said, it isn't a big deal. It's no privacy risk, it's just some memory that could be freed. But once the client is restarted there will be no difference as the list will not get populated in the first place. |
I guess the saved memory is not noticeable on any system though, so I think that's okay :) |
020c8b5
to
a94431d
Compare
Added the changes you requested. And yep, i feel like im blind, didnt saw that the list is static Edit: The CI for macOS failed when setting up the build environment, i dont think the changes i made should break anything hmm |
a94431d
to
1f60299
Compare
We had some issues with the macOS CI (see #4349) - I rebased your branch against the current master brach and now all CIs should succeed. After that I think we can merge this PR :) |
This commit makes it possible to hide the public server list from the connect dialog. The setting's group was left to be "ui" for backwards compatibility (even though the actual setting is part of the network settings in the UI). Implements mumble-voip#4070
Updating 'mumble_en.ts'... Found 1884 source text(s) (2 new and 1882 already existing)
1f60299
to
40bf15b
Compare
(I also fixed some whitespace issue while I was on it - you had mixed indentation with tabs and with spaces) |
Thank you for your contribution! :) |
Alright, thank you all for you help! :) |
You're welcome :) |
This implements #4070 and makes it possible to hide the public-server-list from the connect dialog.
The save location was left under ui for backwards compatibility.
This is a follow-up on #4305