From 57ee5ac26b12df5c7632cd5e7fe1382a1827d4e8 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 1 Aug 2014 11:19:50 +0200 Subject: [PATCH] Add autologinUser to GlobalStorage. --- src/modules/users/UsersPage.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/users/UsersPage.cpp b/src/modules/users/UsersPage.cpp index 646cde6c6..5b55b359e 100644 --- a/src/modules/users/UsersPage.cpp +++ b/src/modules/users/UsersPage.cpp @@ -95,8 +95,10 @@ UsersPage::createJobs() ui->textBoxRootPassword->text() ); list.append( Calamares::job_ptr( j ) ); - Calamares::JobQueue::instance()-> - globalStorage()->insert( "hostname", ui->textBoxHostname->text() ); + Calamares::GlobalStorage* gs = Calamares::JobQueue::instance()->globalStorage(); + gs->insert( "hostname", ui->textBoxHostname->text() ); + if ( ui->checkBoxLoginAuto->isChecked() ) + gs->insert( "autologinUser", ui->textBoxUsername->text() ); return list; }