mirror of https://github.com/procxx/kepka.git
				
				
				
			Fix crash in edit group info box.
This commit is contained in:
		
							parent
							
								
									2a59802a16
								
							
						
					
					
						commit
						9ba482f56f
					
				| 
						 | 
				
			
			@ -1066,12 +1066,11 @@ object_ptr<Ui::RpWidget> Controller::createDeleteButton() {
 | 
			
		|||
 | 
			
		||||
void Controller::submitTitle() {
 | 
			
		||||
	Expects(_controls.title != nullptr);
 | 
			
		||||
	Expects(_controls.description != nullptr);
 | 
			
		||||
 | 
			
		||||
	if (_controls.title->getLastText().isEmpty()) {
 | 
			
		||||
		_controls.title->showError();
 | 
			
		||||
		_box->scrollToWidget(_controls.title);
 | 
			
		||||
	} else {
 | 
			
		||||
	} else if (_controls.description) {
 | 
			
		||||
		_controls.description->setFocus();
 | 
			
		||||
		_box->scrollToWidget(_controls.description);
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue