Fixed client detected dialog not shown when Synergy is minimized #4307

This commit is contained in:
Xinyu Hou 2015-01-05 13:32:58 +00:00
parent d7fb7b0330
commit 1f41b92693
1 changed files with 8 additions and 5 deletions

View File

@ -374,13 +374,16 @@ int ServerConfig::showAddClientDialog(const QString& clientName)
{ {
int result = kAddClientIgnore; int result = kAddClientIgnore;
if (m_pMainWindow->isActiveWindow()) { if (!m_pMainWindow->isActiveWindow()) {
AddClientDialog addClientDialog(clientName, m_pMainWindow); m_pMainWindow->showNormal();
addClientDialog.exec(); m_pMainWindow->activateWindow();
result = addClientDialog.addResult();
m_IgnoreAutoConfigClient = addClientDialog.ignoreAutoConfigClient();
} }
AddClientDialog addClientDialog(clientName, m_pMainWindow);
addClientDialog.exec();
result = addClientDialog.addResult();
m_IgnoreAutoConfigClient = addClientDialog.ignoreAutoConfigClient();
return result; return result;
} }