m_repaint(false),
m_quitFlag(false),
m_firstPasswordTry(true),
- m_authenticaionCanceled(false),
m_dontSendClipboard(false),
m_horizontalFactor(1.0),
m_verticalFactor(1.0),
unpressModifiers();
// Disconnect all signals so that we don't get any more callbacks from the client thread
+ vncThread.disconnect();
+ /*
disconnect(&vncThread, SIGNAL(imageUpdated(int, int, int, int)), this, SLOT(updateImage(int, int, int, int)));
disconnect(&vncThread, SIGNAL(gotCut(const QString&)), this, SLOT(setCut(const QString&)));
disconnect(&vncThread, SIGNAL(passwordRequest()), this, SLOT(requestPassword()));
disconnect(&vncThread, SIGNAL(outputErrorMessage(QString)), this, SLOT(outputErrorMessage(QString)));
+ */
startQuitting();
}
const bool quitSuccess = vncThread.wait(500);
- kDebug(5011) << "Quit VNC thread success:" << quitSuccess;
+ kDebug(5011) << "startQuitting(): Quit VNC thread success:" << quitSuccess;
setStatus(Disconnected);
}
{
kDebug(5011) << "request password";
- if (m_authenticaionCanceled) {
- startQuitting();
- return;
- }
-
setStatus(Authenticating);
if (!m_url.password().isNull()) {
tr("Please enter the password for the remote desktop:"),
QLineEdit::Password, QString(), &ok);
m_firstPasswordTry = false;
- if (ok)
+ if (ok) {
vncThread.setPassword(password);
- else
- m_authenticaionCanceled = true;
+ } else {
+ startQuitting();
+ }
}
void VncView::outputErrorMessage(const QString &message)