author | zecke <zecke> | 2004-07-09 21:36:37 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-07-09 21:36:37 (UTC) |
commit | 944adb8bf2741a16cf627d19e08f51c08920ad89 (patch) (side-by-side diff) | |
tree | 5f9edc9784e0268a00fe68ec74d7151900c5183a /core/opie-login/loginwindowimpl.cpp | |
parent | c5d3262afd775bce81b99c5dc06e74c4686cee2a (diff) | |
download | opie-944adb8bf2741a16cf627d19e08f51c08920ad89.zip opie-944adb8bf2741a16cf627d19e08f51c08920ad89.tar.gz opie-944adb8bf2741a16cf627d19e08f51c08920ad89.tar.bz2 |
Add setting a root password if none is set to opie-login
If you directly start Opie-Taskbar or use AutoLogin
you will not be presented by a set root password gui
Diffstat (limited to 'core/opie-login/loginwindowimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/opie-login/loginwindowimpl.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/core/opie-login/loginwindowimpl.cpp b/core/opie-login/loginwindowimpl.cpp index 32f98f3..73c2cbe 100644 --- a/core/opie-login/loginwindowimpl.cpp +++ b/core/opie-login/loginwindowimpl.cpp @@ -48,4 +48,5 @@ #include <stdlib.h> +#include "passworddialogimpl.h" #include "loginwindowimpl.h" #include "loginapplication.h" @@ -91,5 +92,5 @@ LoginWindowImpl::LoginWindowImpl ( ) : LoginWindow ( 0, "LOGIN-WINDOW", WStyle_C } - m_caption-> setText ( tr("<center>Welcome to OPIE %1</center><center>& %2 %3</center>"). arg(QPE_VERSION). arg ( ODevice::inst ( )-> systemString ( )). arg ( ODevice::inst ( )-> systemVersionString ( ))); +// m_caption-> setText ( tr("<center>Welcome to OPIE %1</center><center>& %2 %3</center>"). arg(QPE_VERSION). arg ( ODevice::inst ( )-> systemString ( )). arg ( ODevice::inst ( )-> systemVersionString ( ))); Config cfg ( "opie-login" ); @@ -101,4 +102,9 @@ LoginWindowImpl::LoginWindowImpl ( ) : LoginWindow ( 0, "LOGIN-WINDOW", WStyle_C calcMaxWindowRect ( ); + + if ( PasswordDialogImpl::needDialog() ) + QTimer::singleShot(10, this, SLOT(showPasswordDialog()) ); + + } @@ -249,2 +255,8 @@ void LoginWindowImpl::login ( ) } } + +void LoginWindowImpl::showPasswordDialog() { + PasswordDialogImpl dia( this ); + dia.showMaximized(); + dia.exec(); +} |