Prefill XSwiftBus server selector widget with default settings value

Initially, the port is filled with 45000 which is reserved for GUI<->Core
DBus communication. Therefore, the default address must be overwritten.
The displayed value might change again in case, a custom TCP address and port
is selected in the user settings.

ref T291
This commit is contained in:
Roland Winklmeier
2018-07-30 10:59:57 +02:00
committed by Klaus Basan
parent ae07d9151e
commit 9b1b39e3a4

View File

@@ -26,7 +26,7 @@ namespace BlackSimPlugin
ui(new Ui::CSimulatorXPlaneConfigWindow)
{
ui->setupUi(this);
ui->comp_SettingsXSwiftBus->setDefaultP2PAddress(m_xswiftbusServerSetting.getDefault());
ui->comp_SettingsXSwiftBus->set(m_xswiftbusServerSetting.getThreadLocal());
connect(ui->bb_OkCancel, &QDialogButtonBox::accepted, this, &CSimulatorXPlaneConfigWindow::settingsAccepted);