This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

#5657 Make serial key argument for server only

  • Loading branch information...
Jerry (Xinyu Hou)
Jerry (Xinyu Hou) committed Oct 18, 2016
1 parent e48be90 commit 45f37c508ccde13f278805546a991dca02a162ec
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/gui/src/MainWindow.cpp
@@ -554,10 +554,6 @@ void MainWindow::startSynergy()
args << "--name" << getScreenName();
- if (!appConfig().serialKey().isEmpty()) {
- args << "--serial-key" << appConfig().serialKey();
- }
-
if (desktopMode)
{
setSynergyProcess(new QProcess(this));
@@ -787,6 +783,10 @@ bool MainWindow::serverArgs(QStringList& args, QString& app)
#endif
args << "-c" << configFilename << "--address" << address();
+ if (!appConfig().serialKey().isEmpty()) {
+ args << "--serial-key" << appConfig().serialKey();
+ }
+
#if defined(Q_OS_WIN)
// pass in physical resolution and primary screen center
// TODO: get this information in the core binary even when

0 comments on commit 45f37c5

Please sign in to comment.