From 19250aadeee730a555ece749e7b3104bbd486f10 Mon Sep 17 00:00:00 2001 From: lat9nq Date: Mon, 20 Jul 2020 23:11:46 -0400 Subject: 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. --- src/yuzu/configuration/configure_ui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/yuzu/configuration/configure_ui.cpp b/src/yuzu/configuration/configure_ui.cpp index fdf9d3351..5c916a0dd 100644 --- a/src/yuzu/configuration/configure_ui.cpp +++ b/src/yuzu/configuration/configure_ui.cpp @@ -63,7 +63,9 @@ ConfigureUi::ConfigureUi(QWidget* parent) : QWidget(parent), ui(new Ui::Configur const QString& filename = QFileDialog::getExistingDirectory( this, tr("Select Screenshots Path..."), QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ScreenshotsDir))); - ui->screenshot_path_edit->setText(filename); + if (!filename.isEmpty()) { + ui->screenshot_path_edit->setText(filename); + } }); } -- cgit v1.2.3