File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ int main(int ac, char *ag[])
228228 QDir ().mkdir (SQPath::logDirectoryPath ());
229229 // std::filebuf crashFile;
230230 mySettings = new Settings ();
231- mySettings->setValue <Settings::RemoteHost>(" 192.168.0.27 " );
231+ // mySettings->setValue<Settings::RemoteHost>("192.168.0.37 ");
232232#ifndef Q_OS_WIN
233233 globalSettings = new QSettings (" nyo.fr" , " QUsb2Snes" );
234234#else
Original file line number Diff line number Diff line change @@ -48,11 +48,13 @@ Q_LOGGING_CATEGORY(log_appUi, "APPUI")
4848#include " appui.h"
4949#include " wsserver.h"
5050#include " sqpath.h"
51+ #include " settings.hpp"
5152
5253
5354static const QString applicationJsonFileName = " qusb2snesapp.json" ;
5455extern QSettings* globalSettings;
5556extern WSServer wsServer;
57+ extern Settings* mySettings;
5658
5759
5860AppUi::AppUi (QObject *parent) : QObject(parent)
@@ -154,7 +156,10 @@ void AppUi::init()
154156 wsServer.addTrusted (ori);
155157 }
156158 }
157- addRemoteFactory ();
159+ if (mySettings->value <Settings::RemoteHost>().isEmpty () == false )
160+ {
161+ addRemoteFactory ();
162+ }
158163 checkForApplications ();
159164 connect (qApp, &QCoreApplication::aboutToQuit, this , [=]() {
160165 sysTray->hide ();
You can’t perform that action at this time.
0 commit comments