"Auto-pronounce in Scan Pop-Up" option should not be disabled when the Scan Pop-Up is disabled.

Because users can manually show the scan pop-up via Ctrl+C+C.
This commit is contained in:
Tvangeste 2011-07-15 14:50:07 +02:00
parent 68335ba349
commit a03d4d2dde

View file

@ -142,8 +142,6 @@ Preferences::Preferences( QWidget * parent, Config::Preferences const & p ):
ui.useWindowsPlaySound->hide(); ui.useWindowsPlaySound->hide();
#endif #endif
ui.pronounceOnLoadPopup->setEnabled( p.enableScanPopup );
ui.pronounceOnLoadMain->setChecked( p.pronounceOnLoadMain ); ui.pronounceOnLoadMain->setChecked( p.pronounceOnLoadMain );
ui.pronounceOnLoadPopup->setChecked( p.pronounceOnLoadPopup ); ui.pronounceOnLoadPopup->setChecked( p.pronounceOnLoadPopup );
@ -253,7 +251,6 @@ Config::Preferences Preferences::getPreferences()
void Preferences::enableScanPopupToggled( bool b ) void Preferences::enableScanPopupToggled( bool b )
{ {
ui.scanPopupModifiers->setEnabled( b && ui.enableScanPopupModifiers->isChecked() ); ui.scanPopupModifiers->setEnabled( b && ui.enableScanPopupModifiers->isChecked() );
ui.pronounceOnLoadPopup->setEnabled( b );
} }
void Preferences::enableScanPopupModifiersToggled( bool b ) void Preferences::enableScanPopupModifiersToggled( bool b )