mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-27 10:21:40 -05: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 */
|
/* Invoke the Qt Designer generated object setup routine */
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
|
|
||||||
|
/* Connect signals */
|
||||||
|
connect(ui.runStartWizard_PB,SIGNAL(clicked()), this,SLOT(runStartWizard())) ;
|
||||||
|
|
||||||
/* Hide platform specific features */
|
/* Hide platform specific features */
|
||||||
#ifdef Q_WS_WIN
|
#ifdef Q_WS_WIN
|
||||||
|
|
||||||
|
#ifdef QT_DEBUG
|
||||||
|
ui.chkRunRetroshareAtSystemStartup->setEnabled(false);
|
||||||
|
ui.chkRunRetroshareAtSystemStartupMinimized->setEnabled(false);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (Settings->canSetRetroShareProtocol() == false) {
|
if (Settings->canSetRetroShareProtocol() == false) {
|
||||||
ui.enableRetroShareProtocol->setEnabled(false);
|
ui.enableRetroShareProtocol->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
@ -52,7 +61,6 @@ GeneralPage::GeneralPage(QWidget * parent, Qt::WFlags flags)
|
|||||||
ui.enableRetroShareProtocol->setVisible(false);
|
ui.enableRetroShareProtocol->setVisible(false);
|
||||||
ui.adminLabel->setVisible(false);
|
ui.adminLabel->setVisible(false);
|
||||||
#endif
|
#endif
|
||||||
connect(ui.runStartWizard_PB,SIGNAL(clicked()), this,SLOT(runStartWizard())) ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Destructor */
|
/** Destructor */
|
||||||
@ -72,7 +80,10 @@ bool GeneralPage::save(QString &/*errmsg*/)
|
|||||||
Settings->setCloseToTray(ui.checkCloseToTray->isChecked());
|
Settings->setCloseToTray(ui.checkCloseToTray->isChecked());
|
||||||
|
|
||||||
#ifdef Q_WS_WIN
|
#ifdef Q_WS_WIN
|
||||||
|
|
||||||
|
#ifndef QT_DEBUG
|
||||||
Settings->setRunRetroshareOnBoot(ui.chkRunRetroshareAtSystemStartup->isChecked(), ui.chkRunRetroshareAtSystemStartupMinimized->isChecked());
|
Settings->setRunRetroshareOnBoot(ui.chkRunRetroshareAtSystemStartup->isChecked(), ui.chkRunRetroshareAtSystemStartupMinimized->isChecked());
|
||||||
|
#endif
|
||||||
|
|
||||||
if (ui.enableRetroShareProtocol->isChecked() != Settings->getRetroShareProtocol()) {
|
if (ui.enableRetroShareProtocol->isChecked() != Settings->getRetroShareProtocol()) {
|
||||||
if (Settings->setRetroShareProtocol(ui.enableRetroShareProtocol->isChecked()) == false) {
|
if (Settings->setRetroShareProtocol(ui.enableRetroShareProtocol->isChecked()) == false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user