-rw-r--r-- | noncore/net/mail/libmailwrapper/logindialog.cpp | 13 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/logindialog.h | 2 |
2 files changed, 9 insertions, 6 deletions
diff --git a/noncore/net/mail/libmailwrapper/logindialog.cpp b/noncore/net/mail/libmailwrapper/logindialog.cpp index d2c6a07..67479e6 100644 --- a/noncore/net/mail/libmailwrapper/logindialog.cpp +++ b/noncore/net/mail/libmailwrapper/logindialog.cpp @@ -4,7 +4,7 @@ -LoginDialog::LoginDialog( QString user, QString pass, QWidget *parent, const char *name, bool modal, WFlags flags ) +LoginDialog::LoginDialog(const QString&user,const QString&pass, QWidget *parent, const char *name, bool modal, WFlags flags ) : LoginDialogUI( parent, name, modal, flags ) { - userLine->setText( user ); - passLine->setText( pass ); + userLine->setText( (user.isEmpty()?"":user) ); + passLine->setText( (pass.isEmpty()?"":pass) ); _user = user; @@ -21,5 +21,8 @@ void LoginDialog::accept() { - _user.replace( 0, _user.length(), userLine->text() ); - _pass.replace( 0, _pass.length(), passLine->text() ); + //_user.replace( 0, _user.length(), userLine->text() ); + //_pass.replace( 0, _pass.length(), passLine->text() ); + _user = userLine->text(); + _pass = passLine->text(); + qDebug("User im accept: |%s|",_user.latin1()); QDialog::accept(); diff --git a/noncore/net/mail/libmailwrapper/logindialog.h b/noncore/net/mail/libmailwrapper/logindialog.h index 7a0d1b0..f406f2c 100644 --- a/noncore/net/mail/libmailwrapper/logindialog.h +++ b/noncore/net/mail/libmailwrapper/logindialog.h @@ -10,3 +10,3 @@ class LoginDialog : public LoginDialogUI public: - LoginDialog( QString user, QString pass, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 ); + LoginDialog(const QString&user,const QString&pass, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 ); QString getUser() { return _user; } |