Bugfix crash on port change
This fix the app crash when you try to change Settings/Network/Port with Qt 5.9.5+ onboard.
Differential Revision: https://phabricator.kde.org/D13045