Show add client dialog only if main window is active #4230

This commit is contained in:
Xinyu Hou 2014-12-01 11:22:42 +00:00
parent 48b552a0e8
commit 917c75026f
1 changed files with 8 additions and 4 deletions

View File

@ -372,10 +372,14 @@ bool ServerConfig::fixNoServer(const QString& name, int& index)
int ServerConfig::showAddClientDialog(const QString& clientName) int ServerConfig::showAddClientDialog(const QString& clientName)
{ {
AddClientDialog addClientDialog(clientName, m_pMainWindow); int result = kAddClientIgnore;
addClientDialog.exec();
int result = addClientDialog.addResult(); if (m_pMainWindow->isActiveWindow()) {
m_IgnoreAutoConfigClient = addClientDialog.ignoreAutoConfigClient(); AddClientDialog addClientDialog(clientName, m_pMainWindow);
addClientDialog.exec();
result = addClientDialog.addResult();
m_IgnoreAutoConfigClient = addClientDialog.ignoreAutoConfigClient();
}
return result; return result;
} }