|
|
|
@ -59,7 +59,7 @@ static KVncView *kvncview;
|
|
|
|
|
//Passwords and TDEWallet data
|
|
|
|
|
extern TDEWallet::Wallet *wallet;
|
|
|
|
|
bool useTDEWallet = false;
|
|
|
|
|
static TQCString password;
|
|
|
|
|
static TQString password;
|
|
|
|
|
static TQMutex passwordLock;
|
|
|
|
|
static TQWaitCondition passwordWaiter;
|
|
|
|
|
|
|
|
|
@ -88,7 +88,7 @@ KVncView::KVncView(TQWidget *parent,
|
|
|
|
|
m_cursorState(dotCursorState)
|
|
|
|
|
{
|
|
|
|
|
kvncview = this;
|
|
|
|
|
password = _password.latin1();
|
|
|
|
|
password = _password;
|
|
|
|
|
dpy = tqt_xdisplay();
|
|
|
|
|
setFixedSize(16,16);
|
|
|
|
|
setFocusPolicy(TQ_StrongFocus);
|
|
|
|
@ -417,7 +417,7 @@ void KVncView::customEvent(TQCustomEvent *e)
|
|
|
|
|
emit showingPasswordDialog(true);
|
|
|
|
|
|
|
|
|
|
if (KPasswordDialog::getPassword(password, i18n("Access to the system requires a password.")) != KPasswordDialog::Accepted)
|
|
|
|
|
password = TQCString();
|
|
|
|
|
password = TQString();
|
|
|
|
|
|
|
|
|
|
emit showingPasswordDialog(false);
|
|
|
|
|
|
|
|
|
@ -450,7 +450,7 @@ void KVncView::customEvent(TQCustomEvent *e)
|
|
|
|
|
wallet->setFolder(krdc_folder);
|
|
|
|
|
TQString newPass;
|
|
|
|
|
if ( wallet->hasEntry(kvncview->host()) && !wallet->readPassword(kvncview->host(), newPass) ) {
|
|
|
|
|
password=newPass.latin1();
|
|
|
|
|
password=newPass;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -792,7 +792,7 @@ int getPassword(char * &passwd) {
|
|
|
|
|
|
|
|
|
|
//Process the password if we got it, clear it if we didn't
|
|
|
|
|
if (retV) {
|
|
|
|
|
passwd = strdup((const char*)password);
|
|
|
|
|
passwd = strdup(password.utf8());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Pack up and go home
|
|
|
|
|