Only enable move buttons for version patches that can move. HACK HACK
This commit is contained in:
		@@ -358,9 +358,14 @@ void VersionPage::versionCurrent(const QModelIndex ¤t, const QModelIndex &
 | 
				
			|||||||
	if (!current.isValid())
 | 
						if (!current.isValid())
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		ui->removeLibraryBtn->setDisabled(true);
 | 
							ui->removeLibraryBtn->setDisabled(true);
 | 
				
			||||||
 | 
							ui->moveLibraryDownBtn->setDisabled(true);
 | 
				
			||||||
 | 
							ui->moveLibraryUpBtn->setDisabled(true);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		ui->removeLibraryBtn->setEnabled(m_version->canRemove(current.row()));
 | 
							bool enabled = m_version->canRemove(current.row());
 | 
				
			||||||
 | 
							ui->removeLibraryBtn->setEnabled(enabled);
 | 
				
			||||||
 | 
							ui->moveLibraryDownBtn->setEnabled(enabled);
 | 
				
			||||||
 | 
							ui->moveLibraryUpBtn->setEnabled(enabled);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user