mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 23:40:06 +00:00 
			
		
		
		
	Reorder alert county settings initialization to ensure county name displays on startup
This commit is contained in:
		
							parent
							
								
									f143186ea5
								
							
						
					
					
						commit
						2f62319958
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -941,10 +941,6 @@ void SettingsDialogImpl::SetupAudioTab() | ||||||
|    alertAudioLongitude_.SetResetButton( |    alertAudioLongitude_.SetResetButton( | ||||||
|       self_->ui->resetAlertAudioLongitudeButton); |       self_->ui->resetAlertAudioLongitudeButton); | ||||||
| 
 | 
 | ||||||
|    alertAudioCounty_.SetSettingsVariable(audioSettings.alert_county()); |  | ||||||
|    alertAudioCounty_.SetEditWidget(self_->ui->alertAudioCountyLineEdit); |  | ||||||
|    alertAudioCounty_.SetResetButton(self_->ui->resetAlertAudioCountyButton); |  | ||||||
| 
 |  | ||||||
|    auto alertAudioLayout = |    auto alertAudioLayout = | ||||||
|       static_cast<QGridLayout*>(self_->ui->alertAudioGroupBox->layout()); |       static_cast<QGridLayout*>(self_->ui->alertAudioGroupBox->layout()); | ||||||
| 
 | 
 | ||||||
|  | @ -1033,6 +1029,10 @@ void SettingsDialogImpl::SetupAudioTab() | ||||||
|                        self_->ui->alertAudioCountyLabel->setText( |                        self_->ui->alertAudioCountyLabel->setText( | ||||||
|                           QString::fromStdString(countyName)); |                           QString::fromStdString(countyName)); | ||||||
|                     }); |                     }); | ||||||
|  | 
 | ||||||
|  |    alertAudioCounty_.SetSettingsVariable(audioSettings.alert_county()); | ||||||
|  |    alertAudioCounty_.SetEditWidget(self_->ui->alertAudioCountyLineEdit); | ||||||
|  |    alertAudioCounty_.SetResetButton(self_->ui->resetAlertAudioCountyButton); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void SettingsDialogImpl::SetupTextTab() | void SettingsDialogImpl::SetupTextTab() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat