Commit 525de77c authored by David Faure's avatar David Faure
Browse files

Fix "finished() called after error()!" warning.

If mConnected is still false after changeCheck, then openConnection
emitted error, so no need to emit finished.
parent 9498d150
......@@ -410,7 +410,6 @@ void LDAPProtocol::get(const QUrl &_url)
changeCheck(usrc);
if (!mConnected) {
finished();
return;
}
......@@ -501,7 +500,6 @@ void LDAPProtocol::stat(const QUrl &_url)
changeCheck(usrc);
if (!mConnected) {
finished();
return;
}
......@@ -552,7 +550,6 @@ void LDAPProtocol::del(const QUrl &_url, bool)
changeCheck(usrc);
if (!mConnected) {
finished();
return;
}
......@@ -584,7 +581,6 @@ void LDAPProtocol::put(const QUrl &_url, int, KIO::JobFlags flags)
changeCheck(usrc);
if (!mConnected) {
finished();
return;
}
......@@ -739,7 +735,6 @@ void LDAPProtocol::listDir(const QUrl &_url)
changeCheck(usrc);
if (!mConnected) {
finished();
return;
}
usrc2 = usrc;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment