Cosmetics
This commit is contained in:
@@ -51,7 +51,8 @@ avrOutputDialog::avrOutputDialog(QWidget *parent, QString prog, QStringList arg,
|
|||||||
ui->progressBar->setMaximum(127);
|
ui->progressBar->setMaximum(127);
|
||||||
QTimer::singleShot(500, this, SLOT(doCopy()));
|
QTimer::singleShot(500, this, SLOT(doCopy()));
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
if (wTitle.isEmpty())
|
if (wTitle.isEmpty())
|
||||||
setWindowTitle(getProgrammer() + " " + tr("result"));
|
setWindowTitle(getProgrammer() + " " + tr("result"));
|
||||||
else
|
else
|
||||||
@@ -62,7 +63,8 @@ avrOutputDialog::avrOutputDialog(QWidget *parent, QString prog, QStringList arg,
|
|||||||
QMessageBox::critical(this, "Companion", getProgrammer() + " " + tr("executable not found"));
|
QMessageBox::critical(this, "Companion", getProgrammer() + " " + tr("executable not found"));
|
||||||
closeOpt = AVR_DIALOG_FORCE_CLOSE;
|
closeOpt = AVR_DIALOG_FORCE_CLOSE;
|
||||||
QTimer::singleShot(0, this, SLOT(forceClose()));
|
QTimer::singleShot(0, this, SLOT(forceClose()));
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
foreach(QString str, arg) cmdLine.append(" " + str);
|
foreach(QString str, arg) cmdLine.append(" " + str);
|
||||||
lfuse = 0;
|
lfuse = 0;
|
||||||
hfuse = 0;
|
hfuse = 0;
|
||||||
@@ -72,7 +74,8 @@ avrOutputDialog::avrOutputDialog(QWidget *parent, QString prog, QStringList arg,
|
|||||||
if (!displayDetails) {
|
if (!displayDetails) {
|
||||||
ui->plainTextEdit->hide();
|
ui->plainTextEdit->hide();
|
||||||
QTimer::singleShot(0, this, SLOT(shrink()));
|
QTimer::singleShot(0, this, SLOT(shrink()));
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
ui->checkBox->setChecked(true);
|
ui->checkBox->setChecked(true);
|
||||||
}
|
}
|
||||||
process = new QProcess(this);
|
process = new QProcess(this);
|
||||||
@@ -241,10 +244,8 @@ void avrOutputDialog::doAddTextStdOut()
|
|||||||
|
|
||||||
if (text.contains("Complete ")) {
|
if (text.contains("Complete ")) {
|
||||||
#if !__GNUC__
|
#if !__GNUC__
|
||||||
if (kill_timer) {
|
|
||||||
delete kill_timer;
|
delete kill_timer;
|
||||||
kill_timer = NULL;
|
kill_timer = NULL;
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
int start = text.indexOf("Complete ");
|
int start = text.indexOf("Complete ");
|
||||||
int end = text.indexOf("%");
|
int end = text.indexOf("%");
|
||||||
|
|||||||
@@ -426,15 +426,18 @@ void burnDialog::on_BurnFlashButton_clicked()
|
|||||||
hexfileName->clear();
|
hexfileName->clear();
|
||||||
QMessageBox::critical(this, tr("Warning"), tr("Cannot save customized firmware"));
|
QMessageBox::critical(this, tr("Warning"), tr("Cannot save customized firmware"));
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
hexfileName->clear();
|
hexfileName->clear();
|
||||||
QMessageBox::critical(this, tr("Warning"), tr("Custom image not found"));
|
QMessageBox::critical(this, tr("Warning"), tr("Custom image not found"));
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
hexfileName->clear();
|
hexfileName->clear();
|
||||||
hexfileName->append(fileName);
|
hexfileName->append(fileName);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
QMessageBox::critical(this, tr("Warning"), tr("No firmware selected"));
|
QMessageBox::critical(this, tr("Warning"), tr("No firmware selected"));
|
||||||
hexfileName->clear();
|
hexfileName->clear();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user