Skip to content
Snippets Groups Projects
Commit f44c478a authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Backport: SL-15383 Controls table was empty after canceling advanced graphical settings

Also causes crashes on SearchableControl::setHighlighted due to views not being there
parent 9b85a06b
Branches
No related tags found
No related merge requests found
...@@ -3458,10 +3458,15 @@ void LLPanelPreferenceControls::cancel() ...@@ -3458,10 +3458,15 @@ void LLPanelPreferenceControls::cancel()
if (mConflictHandler[i].hasUnsavedChanges()) if (mConflictHandler[i].hasUnsavedChanges())
{ {
mConflictHandler[i].clear(); mConflictHandler[i].clear();
if (mEditingMode == i)
{
// cancel() can be called either when preferences floater closes
// or when child floater closes (like advanced graphical settings)
// in which case we need to clear and repopulate table
regenerateControls();
}
} }
} }
pControlsTable->clearRows();
pControlsTable->clearColumns();
} }
void LLPanelPreferenceControls::saveSettings() void LLPanelPreferenceControls::saveSettings()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment