Merge pull request #6979 from symless/SYNERGY-918-Manual-config-error-in-client-mode

SYNERGY-918 Manual config error in client mode
This commit is contained in:
Andrey Batyiev 2021-04-20 08:27:39 +03:00 committed by GitHub
commit 426055a44a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View file

@ -9,6 +9,7 @@ Bug fixes:
- #6974 Fix macOS 10.13 application filess
- #6975 Fix server stop working
- #6976 Fix windows builds
- #6979 Manual config error in client mode
Enhancements:
- #6954 Move language selection to advanced section

View file

@ -661,6 +661,12 @@ void MainWindow::startSynergy()
}
#endif
// put a space between last log output and new instance.
if (!m_pLogOutput->toPlainText().isEmpty())
appendLogRaw("");
appendLogInfo("starting " + QString(synergyType() == synergyServer ? "server" : "client"));
if ((synergyType() == synergyClient && !clientArgs(args, app))
|| (synergyType() == synergyServer && !serverArgs(args, app)))
{
@ -675,12 +681,6 @@ void MainWindow::startSynergy()
connect(synergyProcess(), SIGNAL(readyReadStandardError()), this, SLOT(logError()));
}
// put a space between last log output and new instance.
if (!m_pLogOutput->toPlainText().isEmpty())
appendLogRaw("");
appendLogInfo("starting " + QString(synergyType() == synergyServer ? "server" : "client"));
qDebug() << args;
// show command if debug log level...
@ -688,7 +688,6 @@ void MainWindow::startSynergy()
appendLogInfo(QString("command: %1 %2").arg(app, args.join(" ")));
}
appendLogInfo("config file: " + configFilename());
appendLogInfo("log level: " + appConfig().logLevelText());
if (appConfig().logToFile())
@ -876,6 +875,7 @@ bool MainWindow::serverArgs(QStringList& args, QString& app)
configFilename = QString("\"%1\"").arg(configFilename);
#endif
args << "-c" << configFilename << "--address" << address();
appendLogInfo("config file: " + configFilename);
#ifndef SYNERGY_ENTERPRISE
if (!appConfig().serialKey().isEmpty()) {