mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-30 09:56:14 -05:00
Merge pull request #603 from G10h4ck/master
Coherent behaviour of general config with auto-login compile option
This commit is contained in:
commit
c3443df83c
@ -32,8 +32,8 @@
|
||||
#include <gui/QuickStartWizard.h>
|
||||
|
||||
/** Constructor */
|
||||
GeneralPage::GeneralPage(QWidget * parent, Qt::WindowFlags flags)
|
||||
: ConfigPage(parent, flags)
|
||||
GeneralPage::GeneralPage(QWidget * parent, Qt::WindowFlags flags) :
|
||||
ConfigPage(parent, flags)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
@ -75,6 +75,13 @@ GeneralPage::GeneralPage(QWidget * parent, Qt::WindowFlags flags)
|
||||
#endif
|
||||
}
|
||||
ui.useLocalServer->setEnabled(true);
|
||||
|
||||
#ifdef RS_AUTOLOGIN
|
||||
ui.autoLogin->setToolTip(tr("For security reasons the usage of auto-login is discouraged, you can enable it but you are on your own!"));
|
||||
#else // RS_AUTOLOGIN
|
||||
ui.autoLogin->setEnabled(false);
|
||||
ui.autoLogin->setToolTip(tr("Your RetroShare build has auto-login disabled."));
|
||||
#endif // RS_AUTOLOGIN
|
||||
}
|
||||
|
||||
/** Destructor */
|
||||
|
@ -151,5 +151,5 @@ sqlcipher:DEFINES -= NO_SQLCIPHER
|
||||
no_sqlcipher:DEFINES *= NO_SQLCIPHER
|
||||
rs_autologin {
|
||||
DEFINES *= RS_AUTOLOGIN
|
||||
warning(You have enabled RetroShare auto-login, this is discouraged. The usage of auto-login on some linux distributions may allow someone having access to your session to steal the SSL keys of your node location and therefore compromise your security)
|
||||
warning("You have enabled RetroShare auto-login, this is discouraged. The usage of auto-login on some linux distributions may allow someone having access to your session to steal the SSL keys of your node location and therefore compromise your security")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user