Hided elevate checkbox on Unix #4130

This commit is contained in:
Xinyu Hou 2014-10-27 17:15:50 +00:00
parent 23670c5f9b
commit 117208754f
1 changed files with 5 additions and 0 deletions

View File

@ -50,9 +50,14 @@ SettingsDialog::SettingsDialog(QWidget* parent, AppConfig& config) :
m_pLineEditCryptoPass->setText(appConfig().cryptoPass()); m_pLineEditCryptoPass->setText(appConfig().cryptoPass());
} }
#if defined(Q_OS_WIN)
m_SuppressElevateWarning = true; m_SuppressElevateWarning = true;
m_pCheckBoxElevateMode->setChecked(appConfig().elevateMode()); m_pCheckBoxElevateMode->setChecked(appConfig().elevateMode());
m_SuppressElevateWarning = false; m_SuppressElevateWarning = false;
#else
// elevate checkbox is only useful on ms windows.
m_pCheckBoxElevateMode->hide();
#endif
} }
void SettingsDialog::accept() void SettingsDialog::accept()