summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/logindialog.cpp13
-rw-r--r--noncore/net/mail/libmailwrapper/logindialog.h2
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 @@
4 4
5LoginDialog::LoginDialog( QString user, QString pass, QWidget *parent, const char *name, bool modal, WFlags flags ) 5LoginDialog::LoginDialog(const QString&user,const QString&pass, QWidget *parent, const char *name, bool modal, WFlags flags )
6 : LoginDialogUI( parent, name, modal, flags ) 6 : LoginDialogUI( parent, name, modal, flags )
7{ 7{
8 userLine->setText( user ); 8 userLine->setText( (user.isEmpty()?"":user) );
9 passLine->setText( pass ); 9 passLine->setText( (pass.isEmpty()?"":pass) );
10 _user = user; 10 _user = user;
@@ -21,5 +21,8 @@ void LoginDialog::accept()
21{ 21{
22 _user.replace( 0, _user.length(), userLine->text() ); 22 //_user.replace( 0, _user.length(), userLine->text() );
23 _pass.replace( 0, _pass.length(), passLine->text() ); 23 //_pass.replace( 0, _pass.length(), passLine->text() );
24 _user = userLine->text();
25 _pass = passLine->text();
24 26
27 qDebug("User im accept: |%s|",_user.latin1());
25 QDialog::accept(); 28 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
10public: 10public:
11 LoginDialog( QString user, QString pass, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 ); 11 LoginDialog(const QString&user,const QString&pass, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 );
12 QString getUser() { return _user; } 12 QString getUser() { return _user; }