refs #392 Added the "Install XBus" feature

* New "Install XBus" button in the CSimulatorXPlaneConfigWindow
* CSettingsSimulatorComponent cleanup
This commit is contained in:
Michał Garapich
2015-09-13 19:15:32 +02:00
committed by Mathew Sutcliffe
parent 06c17d7d09
commit cf3102333b
10 changed files with 92 additions and 17 deletions

View File

@@ -527,6 +527,7 @@ namespace BlackSimPlugin
}
else
{
CLogMessage(this).debug() << "Starting XBus on %1" << m_xbusServerSetting.get();
m_conn = CSimulatorXPlane::connectionFromString(m_xbusServerSetting.get());
m_watcher = new QDBusServiceWatcher(xbusServiceName(), m_conn, QDBusServiceWatcher::WatchForRegistration, this);
connect(m_watcher, &QDBusServiceWatcher::serviceRegistered, this, &CSimulatorXPlaneListener::ps_serviceRegistered);
@@ -568,7 +569,6 @@ namespace BlackSimPlugin
{
// user changed settings, restart the listener
if (m_watcher) {
CLogMessage(this).debug() << "XP: Restarting listener";
stop();
start();
}