mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
configure_ui: don't use an empty string
If the user had cancelled, it would clear the text box. That behavior was sanitized underneath, but may anyways cause inconveniences.
This commit is contained in:
parent
599b7c26a9
commit
19250aadee
@ -63,7 +63,9 @@ ConfigureUi::ConfigureUi(QWidget* parent) : QWidget(parent), ui(new Ui::Configur
|
|||||||
const QString& filename = QFileDialog::getExistingDirectory(
|
const QString& filename = QFileDialog::getExistingDirectory(
|
||||||
this, tr("Select Screenshots Path..."),
|
this, tr("Select Screenshots Path..."),
|
||||||
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ScreenshotsDir)));
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ScreenshotsDir)));
|
||||||
|
if (!filename.isEmpty()) {
|
||||||
ui->screenshot_path_edit->setText(filename);
|
ui->screenshot_path_edit->setText(filename);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user