import/export fixes

This commit is contained in:
pokamest 2021-05-10 14:19:36 +03:00
parent e3fb239de9
commit 835f767c3f
5 changed files with 943 additions and 847 deletions

View file

@ -171,10 +171,10 @@ void Settings::clearLastConnectionConfig(int serverIndex, DockerContainer contai
qDebug() << "Settings::clearLastConnectionConfig for" << serverIndex << container << proto;
}
bool Settings::haveAuthData() const
bool Settings::haveAuthData(int serverIndex) const
{
ServerCredentials cred = defaultServerCredentials();
if (serverIndex < 0) return false;
ServerCredentials cred = serverCredentials(serverIndex);
return (!cred.hostName.isEmpty() && !cred.userName.isEmpty() && !cred.password.isEmpty());
}