mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
Made autologin optional at compile time
Autologin is disabled by default at compile time, and a warning to discourage it's usage is printed if it is enabled. This will make default RetroShare build safer and reduce dependencies as example we don't depends anymore on gnome keyring is not needed in default build for linux anymore.
This commit is contained in:
parent
6890669820
commit
8656452c68
10 changed files with 202 additions and 146 deletions
|
@ -35,12 +35,17 @@ StartDialog::StartDialog(QWidget *parent)
|
|||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
#ifdef RS_AUTOLOGIN
|
||||
connect(ui.autologin_checkbox, SIGNAL(clicked()), this, SLOT(notSecureWarning()));
|
||||
#else
|
||||
ui.autologin_checkbox->setHidden(true);
|
||||
#endif
|
||||
|
||||
Settings->loadWidgetInformation(this);
|
||||
|
||||
ui.loadButton->setFocus();
|
||||
|
||||
connect(ui.loadButton, SIGNAL(clicked()), this, SLOT(loadPerson()));
|
||||
connect(ui.autologin_checkbox, SIGNAL(clicked()), this, SLOT(notSecureWarning()));
|
||||
|
||||
/* get all available pgp private certificates....
|
||||
* mark last one as default.
|
||||
|
@ -115,6 +120,7 @@ bool StartDialog::requestedNewCert()
|
|||
return reqNewCert;
|
||||
}
|
||||
|
||||
#ifdef RS_AUTOLOGIN
|
||||
void StartDialog::notSecureWarning()
|
||||
{
|
||||
/* some error msg */
|
||||
|
@ -130,3 +136,4 @@ void StartDialog::notSecureWarning()
|
|||
#endif
|
||||
#endif
|
||||
}
|
||||
#endif // RS_AUTOLOGIN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue