Hided elevate checkbox on Unix #4130
This commit is contained in:
parent
23670c5f9b
commit
117208754f
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue