Move generalSettingsWidgetDestroyed() into private class.