clean up code

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2142 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-01-28 00:34:33 +00:00
parent e142c63180
commit c866df1015
2 changed files with 1 additions and 12 deletions

View File

@ -34,13 +34,11 @@ GeneralPage::GeneralPage(QWidget * parent, Qt::WFlags flags)
/* Create RshareSettings object */ /* Create RshareSettings object */
_settings = new RshareSettings(); _settings = new RshareSettings();
//load();
/* Hide platform specific features */ /* Hide platform specific features */
#ifndef Q_WS_WIN #ifndef Q_WS_WIN
ui.chkRunRetroshareAtSystemStartup->setVisible(false); ui.chkRunRetroshareAtSystemStartup->setVisible(false);
//ui.autologincheckBox->setEnabled(false) ;
//ui.autologincheckBox->setChecked(false) ;
#endif #endif
} }
@ -60,8 +58,6 @@ GeneralPage::save(QString &errmsg)
_settings->setValue(QString::fromUtf8("ClosetoTray"), closetoTray()); _settings->setValue(QString::fromUtf8("ClosetoTray"), closetoTray());
//_settings->setValue(QString::fromUtf8("FirstRun"), firstRun());
_settings->setRunRetroshareOnBoot( _settings->setRunRetroshareOnBoot(
ui.chkRunRetroshareAtSystemStartup->isChecked()); ui.chkRunRetroshareAtSystemStartup->isChecked());
@ -81,8 +77,6 @@ GeneralPage::load()
ui.checkClosetoTray->setChecked(_settings->value(QString::fromUtf8("ClosetoTray"), false).toBool()); ui.checkClosetoTray->setChecked(_settings->value(QString::fromUtf8("ClosetoTray"), false).toBool());
//ui.checkBoxWizard->setChecked(_settings->value(QString::fromUtf8("FirstRun"), false).toBool());
} }
@ -101,10 +95,6 @@ bool GeneralPage::closetoTray() const {
return ui.checkClosetoTray->isChecked(); return ui.checkClosetoTray->isChecked();
} }
//bool GeneralPage::firstRun() const {
// if(ui.checkBoxWizard->isChecked()) return true;
// return ui.checkBoxWizard->isChecked();
//}
/** Called when the "show on startup" checkbox is toggled. */ /** Called when the "show on startup" checkbox is toggled. */
void void

View File

@ -50,7 +50,6 @@ public:
bool startMinimized() const; bool startMinimized() const;
bool closetoTray() const; bool closetoTray() const;
bool quit() const; bool quit() const;
//bool firstRun() const;
private slots: private slots: