mirror of https://github.com/debauchee/barrier.git
Show add client dialog only if main window is active #4230
This commit is contained in:
parent
48b552a0e8
commit
917c75026f
|
@ -372,10 +372,14 @@ bool ServerConfig::fixNoServer(const QString& name, int& index)
|
|||
|
||||
int ServerConfig::showAddClientDialog(const QString& clientName)
|
||||
{
|
||||
AddClientDialog addClientDialog(clientName, m_pMainWindow);
|
||||
addClientDialog.exec();
|
||||
int result = addClientDialog.addResult();
|
||||
m_IgnoreAutoConfigClient = addClientDialog.ignoreAutoConfigClient();
|
||||
int result = kAddClientIgnore;
|
||||
|
||||
if (m_pMainWindow->isActiveWindow()) {
|
||||
AddClientDialog addClientDialog(clientName, m_pMainWindow);
|
||||
addClientDialog.exec();
|
||||
result = addClientDialog.addResult();
|
||||
m_IgnoreAutoConfigClient = addClientDialog.ignoreAutoConfigClient();
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue