From 5fc28e31a63d0ab46d66f78a685914f9101d6267 Mon Sep 17 00:00:00 2001 From: Gavin Bises Date: Fri, 20 Feb 2015 21:36:18 -0500 Subject: [PATCH] Disable spec notification toggle if notifications are off on dlg create --- cockatrice/src/dlg_settings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cockatrice/src/dlg_settings.cpp b/cockatrice/src/dlg_settings.cpp index 364a5e3a..23ffaee8 100644 --- a/cockatrice/src/dlg_settings.cpp +++ b/cockatrice/src/dlg_settings.cpp @@ -449,6 +449,7 @@ UserInterfaceSettingsPage::UserInterfaceSettingsPage() connect(¬ificationsEnabledCheckBox, SIGNAL(stateChanged(int)), this, SLOT(setSpecNotificationEnabled(int))); specNotificationsEnabledCheckBox.setChecked(settingsCache->getSpectatorNotificationsEnabled()); + specNotificationsEnabledCheckBox.setEnabled(settingsCache->getNotificationsEnabled()); connect(&specNotificationsEnabledCheckBox, SIGNAL(stateChanged(int)), settingsCache, SLOT(setSpectatorNotificationsEnabled(int))); doubleClickToPlayCheckBox.setChecked(settingsCache->getDoubleClickToPlay());