Connect to local portgroup later in the app startup sequence
This allows drone to init itself and wait for connections before we attempt to connect to it Fixes #266
This commit is contained in:
parent
00bc01898d
commit
0d1b4be682
@ -153,6 +153,12 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
this, SLOT(onNewVersion(QString)));
|
||||
updater->checkForNewVersion();
|
||||
|
||||
// Add the "Local" Port Group
|
||||
if (appParams.optLocalDrone()) {
|
||||
PortGroup *pg = new PortGroup;
|
||||
pgl->addPortGroup(*pg);
|
||||
}
|
||||
|
||||
if (appParams.argumentCount()) {
|
||||
QString fileName = appParams.argument(0);
|
||||
if (QFile::exists(fileName))
|
||||
|
@ -43,12 +43,6 @@ PortGroupList::PortGroupList()
|
||||
deviceGroupModelTester_ = new ModelTest(getDeviceGroupModel());
|
||||
deviceModelTester_ = new ModelTest(getDeviceModel());
|
||||
#endif
|
||||
|
||||
// Add the "Local" Port Group
|
||||
if (appParams.optLocalDrone()) {
|
||||
PortGroup *pg = new PortGroup;
|
||||
addPortGroup(*pg);
|
||||
}
|
||||
}
|
||||
|
||||
PortGroupList::~PortGroupList()
|
||||
|
Loading…
Reference in New Issue
Block a user