chore: rm unused ServerConfig::showAddClientDialog
This commit is contained in:
parent
3580b4ead9
commit
2efcc76933
2 changed files with 0 additions and 17 deletions
|
|
@ -425,22 +425,6 @@ bool ServerConfig::fixNoServer(const QString &name, int &index)
|
|||
return fixed;
|
||||
}
|
||||
|
||||
int ServerConfig::showAddClientDialog(const QString &clientName)
|
||||
{
|
||||
auto result = static_cast<int>(AddAction::AddClientIgnore);
|
||||
|
||||
if (!m_pMainWindow->isActiveWindow()) {
|
||||
m_pMainWindow->showNormal();
|
||||
m_pMainWindow->activateWindow();
|
||||
}
|
||||
|
||||
AddClientDialog addClientDialog(clientName, m_pMainWindow);
|
||||
addClientDialog.exec();
|
||||
result = static_cast<int>(addClientDialog.addResult());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
void ServerConfig::addToFirstEmptyGrid(const QString &clientName)
|
||||
{
|
||||
for (int i = 0; i < screens().size(); i++) {
|
||||
|
|
|
|||
|
|
@ -247,7 +247,6 @@ private:
|
|||
int adjacentScreenIndex(int idx, int deltaColumn, int deltaRow) const;
|
||||
bool findScreenName(const QString &name, int &index);
|
||||
bool fixNoServer(const QString &name, int &index);
|
||||
int showAddClientDialog(const QString &clientName);
|
||||
void addToFirstEmptyGrid(const QString &clientName);
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Reference in a new issue