mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Disabled setting "Start RetroShare when my system starts" on Windows when running the debug version.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6563 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3865c14583
commit
1c4f68bc60
@ -38,8 +38,17 @@ GeneralPage::GeneralPage(QWidget * parent, Qt::WFlags flags)
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
/* Connect signals */
|
||||
connect(ui.runStartWizard_PB,SIGNAL(clicked()), this,SLOT(runStartWizard())) ;
|
||||
|
||||
/* Hide platform specific features */
|
||||
#ifdef Q_WS_WIN
|
||||
|
||||
#ifdef QT_DEBUG
|
||||
ui.chkRunRetroshareAtSystemStartup->setEnabled(false);
|
||||
ui.chkRunRetroshareAtSystemStartupMinimized->setEnabled(false);
|
||||
#endif
|
||||
|
||||
if (Settings->canSetRetroShareProtocol() == false) {
|
||||
ui.enableRetroShareProtocol->setEnabled(false);
|
||||
} else {
|
||||
@ -52,7 +61,6 @@ GeneralPage::GeneralPage(QWidget * parent, Qt::WFlags flags)
|
||||
ui.enableRetroShareProtocol->setVisible(false);
|
||||
ui.adminLabel->setVisible(false);
|
||||
#endif
|
||||
connect(ui.runStartWizard_PB,SIGNAL(clicked()), this,SLOT(runStartWizard())) ;
|
||||
}
|
||||
|
||||
/** Destructor */
|
||||
@ -72,7 +80,10 @@ bool GeneralPage::save(QString &/*errmsg*/)
|
||||
Settings->setCloseToTray(ui.checkCloseToTray->isChecked());
|
||||
|
||||
#ifdef Q_WS_WIN
|
||||
|
||||
#ifndef QT_DEBUG
|
||||
Settings->setRunRetroshareOnBoot(ui.chkRunRetroshareAtSystemStartup->isChecked(), ui.chkRunRetroshareAtSystemStartupMinimized->isChecked());
|
||||
#endif
|
||||
|
||||
if (ui.enableRetroShareProtocol->isChecked() != Settings->getRetroShareProtocol()) {
|
||||
if (Settings->setRetroShareProtocol(ui.enableRetroShareProtocol->isChecked()) == false) {
|
||||
|
Loading…
Reference in New Issue
Block a user