This commit is contained in:
DavidXanatos 2022-10-28 20:36:58 +02:00
parent d60e06d92e
commit 65f936b3a4
1 changed files with 5 additions and 2 deletions

View File

@ -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);