X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Furpoprocess.cpp;h=a23ba2cd7fd64660816039c429cf3d283a906022;hb=f681d4fd85ebf39acd2c06f8ac8185970fff2a13;hp=790061726705ef2c7fc5012f5aaf0d8ad9e24da5;hpb=9b0352c17625d2053b86dec69475fce6508b1c1e;p=urpo diff --git a/src/urpoprocess.cpp b/src/urpoprocess.cpp index 7900617..a23ba2c 100644 --- a/src/urpoprocess.cpp +++ b/src/urpoprocess.cpp @@ -61,32 +61,6 @@ void UrpoProcess::timeout() { // If process is still running, it means timeout! if( status_ == Running) - { - // Read output - QByteArray bytes = qprocess_.readAllStandardOutput(); - QString string(bytes); - sendDebugMessage(string); - - if(string.contains("'s password:") || string.contains("passphrase:")) - { - // Try to ask password - if( storedPassword_.isEmpty()) - { - if( string.contains("'s password:") ) - storedPassword_ = QInputDialog::getText( 0, tr("Server ask password"), tr("Password:"), QLineEdit::PasswordEchoOnEdit ); - else - storedPassword_ = QInputDialog::getText( 0, tr("Server ask passphrase"), tr("Passphrase:"), QLineEdit::PasswordEchoOnEdit ); - } - qprocess_.write(storedPassword_.toAscii()); - qprocess_.write("\n"); - - QTimer::singleShot( getTimeout(), this, SLOT(timeout()) ); - status_ = PasswdRunning; - } - else - fail( Timeout ); - } - else if( status_ == PasswdRunning ) fail(Timeout); // FAILS !!! }