Show connected message box only when main GUI is visible #4850

This commit is contained in:
Jerry (Xinyu Hou) 2015-07-20 16:19:46 -07:00
parent 7259e71439
commit 1369f46cee
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ void MainWindow::checkConnected(const QString& line)
{ {
setSynergyState(synergyConnected); setSynergyState(synergyConnected);
if (!appConfig().startedBefore()) { if (!appConfig().startedBefore() && isVisible()) {
QMessageBox::information( QMessageBox::information(
this, "Synergy", this, "Synergy",
tr("Synergy is now connected, You can close the " tr("Synergy is now connected, You can close the "