Display error message if output image is empty
parent
bfd23a4abd
commit
ea1906c0ac
|
@ -144,6 +144,12 @@ void MainWindow::on_button_generate_clicked()
|
|||
return;
|
||||
}
|
||||
QString imgName = getOutputFileName();
|
||||
if(imgName.isEmpty()){
|
||||
QMessageBox::critical(this, tr("no output image selected"),
|
||||
tr("ERROR: No output image selected<br><br>"
|
||||
"please select a output image"));
|
||||
return;
|
||||
}
|
||||
if(QFile::exists(imgName)){
|
||||
int ret = QMessageBox::question(this, tr("the Image File does already exist"),
|
||||
tr("The File <i>%1</i> does already exist. <br><br>"
|
||||
|
|
Loading…
Reference in New Issue