NOISSUE fix all clang warnings
This commit is contained in:
		@@ -82,7 +82,7 @@ QString CopyInstanceDialog::instGroup() const
 | 
			
		||||
void CopyInstanceDialog::on_iconButton_clicked()
 | 
			
		||||
{
 | 
			
		||||
	IconPickerDialog dlg(this);
 | 
			
		||||
	dlg.exec(InstIconKey);
 | 
			
		||||
	dlg.execWithSelection(InstIconKey);
 | 
			
		||||
 | 
			
		||||
	if (dlg.result() == QDialog::Accepted)
 | 
			
		||||
	{
 | 
			
		||||
 
 | 
			
		||||
@@ -126,7 +126,7 @@ void IconPickerDialog::selectionChanged(QItemSelection selected, QItemSelection
 | 
			
		||||
		selectedIconKey = key;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int IconPickerDialog::exec(QString selection)
 | 
			
		||||
int IconPickerDialog::execWithSelection(QString selection)
 | 
			
		||||
{
 | 
			
		||||
	auto list = ENV.icons();
 | 
			
		||||
	auto contentsWidget = ui->iconView;
 | 
			
		||||
 
 | 
			
		||||
@@ -29,7 +29,7 @@ class IconPickerDialog : public QDialog
 | 
			
		||||
public:
 | 
			
		||||
	explicit IconPickerDialog(QWidget *parent = 0);
 | 
			
		||||
	~IconPickerDialog();
 | 
			
		||||
	int exec(QString selection);
 | 
			
		||||
	int execWithSelection(QString selection);
 | 
			
		||||
	QString selectedIconKey;
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
 
 | 
			
		||||
@@ -122,9 +122,10 @@ void NewInstanceDialog::updateDialogState()
 | 
			
		||||
	{
 | 
			
		||||
		ui->instNameTextBox->setPlaceholderText(suggestedName);
 | 
			
		||||
	}
 | 
			
		||||
	bool allowOK = !instName().isEmpty() &&
 | 
			
		||||
				   (ui->versionBox->isChecked() && m_selectedVersion ||
 | 
			
		||||
					(ui->modpackBox->isChecked() && ui->modpackEdit->hasAcceptableInput()));
 | 
			
		||||
	bool allowOK = !instName().isEmpty() && (
 | 
			
		||||
		(ui->versionBox->isChecked() && m_selectedVersion) ||
 | 
			
		||||
		(ui->modpackBox->isChecked() && ui->modpackEdit->hasAcceptableInput())
 | 
			
		||||
	);
 | 
			
		||||
	ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(allowOK);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -206,7 +207,7 @@ void NewInstanceDialog::on_btnChangeVersion_clicked()
 | 
			
		||||
void NewInstanceDialog::on_iconButton_clicked()
 | 
			
		||||
{
 | 
			
		||||
	IconPickerDialog dlg(this);
 | 
			
		||||
	dlg.exec(InstIconKey);
 | 
			
		||||
	dlg.execWithSelection(InstIconKey);
 | 
			
		||||
 | 
			
		||||
	if (dlg.result() == QDialog::Accepted)
 | 
			
		||||
	{
 | 
			
		||||
 
 | 
			
		||||
@@ -52,7 +52,7 @@ void ProgressDialog::updateSize()
 | 
			
		||||
	resize(QSize(480, minimumSizeHint().height()));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int ProgressDialog::exec(Task *task)
 | 
			
		||||
int ProgressDialog::execWithTask(Task *task)
 | 
			
		||||
{
 | 
			
		||||
	this->task = task;
 | 
			
		||||
	QDialog::DialogCode result;
 | 
			
		||||
 
 | 
			
		||||
@@ -34,7 +34,7 @@ public:
 | 
			
		||||
 | 
			
		||||
	void updateSize();
 | 
			
		||||
 | 
			
		||||
	int exec(Task *task);
 | 
			
		||||
	int execWithTask(Task *task);
 | 
			
		||||
 | 
			
		||||
	void setSkipButton(bool present, QString label = QString());
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user