import/export fixes
This commit is contained in:
parent
e3fb239de9
commit
835f767c3f
5 changed files with 943 additions and 847 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue