dumping_dialog: Prompt when path is empty

This commit is contained in:
zhupengfei 2020-02-25 18:58:46 +08:00
parent 8868d4db86
commit c9c26955d2
No known key found for this signature in database
GPG key ID: DD129E108BD09378

View file

@ -17,6 +17,10 @@ DumpingDialog::DumpingDialog(QWidget* parent)
connect(ui->pathExplore, &QToolButton::clicked, this, &DumpingDialog::OnToolButtonClicked);
connect(ui->buttonBox, &QDialogButtonBox::accepted, [this] {
if (ui->pathLineEdit->text().isEmpty()) {
QMessageBox::critical(this, tr("Citra"), tr("Please specify the output path."));
return;
}
ApplyConfiguration();
accept();
});