NOISSUE FTB pack code implementation, cleaned up
This commit is contained in:
		
				
					committed by
					
						
						Petr Mrázek
					
				
			
			
				
	
			
			
			
						parent
						
							6cee50eac6
						
					
				
				
					commit
					6aada8adf7
				
			@@ -144,6 +144,12 @@ void NewInstanceDialog::setSuggestedPack(const QString& name, InstanceTask* task
 | 
			
		||||
    creationTask.reset(task);
 | 
			
		||||
    ui->instNameTextBox->setPlaceholderText(name);
 | 
			
		||||
 | 
			
		||||
    if(!task)
 | 
			
		||||
    {
 | 
			
		||||
        ui->iconButton->setIcon(MMC->icons()->getIcon("default"));
 | 
			
		||||
        importIcon = false;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    auto allowOK = task && !instName().isEmpty();
 | 
			
		||||
    m_buttons->button(QDialogButtonBox::Ok)->setEnabled(allowOK);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user