Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/qikec/qikec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,14 @@ bool _QIKEC::init( int argc, char ** argv, qikecRoot * setRoot )
{
username.add( "", 1 );
r->lineEditUsername->setText( username.text() );
r->lineEditPassword->setFocus();
}

if( password.size() )
{
password.add( "", 1 );
r->lineEditPassword->setText( password.text() );
r->pushButtonConnect->setFocus();
}

if( !user_credentials() )
Expand Down
1 change: 1 addition & 0 deletions source/qikec/qikec.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ typedef class _qikecRoot : public QMainWindow, public Ui::ikecRoot

connect( pushButtonConnect, SIGNAL( clicked() ), this, SLOT( siteConnect() ) );
connect( pushButtonExit, SIGNAL( clicked() ), this, SLOT( siteDisconnect() ) );
connect( lineEditPassword, &QLineEdit::returnPressed, pushButtonConnect, &QPushButton::click);

lineEditUsername->setFocus();
}
Expand Down
2 changes: 0 additions & 2 deletions source/qikec/root.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ void _qikecRoot::customEvent( QEvent * e )
PasswordEvent * event = ( PasswordEvent * ) e;
event->data->text = lineEditPassword->text();
event->data->result = 0;

lineEditPassword->clear();
}

if( e->type() == EVENT_FILEPASS )
Expand Down