1.5.3
This commit is contained in:
parent
d60e06d92e
commit
65f936b3a4
|
@ -502,6 +502,7 @@ COptionsWindow::COptionsWindow(const QSharedPointer<CSbieIni>& pBox, const QStri
|
||||||
|
|
||||||
LoadConfig();
|
LoadConfig();
|
||||||
|
|
||||||
|
m_pCurrentTab = ui.tabGeneral;
|
||||||
UpdateCurrentTab();
|
UpdateCurrentTab();
|
||||||
|
|
||||||
ui.buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false);
|
ui.buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false);
|
||||||
|
@ -970,10 +971,12 @@ void COptionsWindow::OnTab(QWidget* pTab)
|
||||||
|
|
||||||
void COptionsWindow::UpdateCurrentTab()
|
void COptionsWindow::UpdateCurrentTab()
|
||||||
{
|
{
|
||||||
if (m_pCurrentTab == ui.tabRestrictions || m_pCurrentTab == ui.tabOptions || m_pCurrentTab == ui.tabSecurity)
|
if (m_pCurrentTab == ui.tabRestrictions || m_pCurrentTab == ui.tabOptions || m_pCurrentTab == ui.tabGeneral)
|
||||||
{
|
{
|
||||||
ui.chkVmRead->setChecked(GetAccessEntry(eIPC, "", eReadOnly, "$:*") != NULL);
|
ui.chkVmRead->setChecked(GetAccessEntry(eIPC, "", eReadOnly, "$:*") != NULL);
|
||||||
|
}
|
||||||
|
else if (m_pCurrentTab ==ui.tabPrivileges || m_pCurrentTab == ui.tabSecurity)
|
||||||
|
{
|
||||||
if (GetAccessEntry(eWnd, "", eOpen, "*") != NULL)
|
if (GetAccessEntry(eWnd, "", eOpen, "*") != NULL)
|
||||||
{
|
{
|
||||||
ui.chkAddToJob->setEnabled(false);
|
ui.chkAddToJob->setEnabled(false);
|
||||||
|
|
Loading…
Reference in New Issue