diff options
| author | 2020-07-20 23:11:46 -0400 | |
|---|---|---|
| committer | 2020-07-20 23:11:46 -0400 | |
| commit | 19250aadeee730a555ece749e7b3104bbd486f10 (patch) | |
| tree | 51fd1ca2d1690d7c96fafaea949339b2e292b50f /src | |
| parent | main: Don't use as many string copies (diff) | |
| download | yuzu-19250aadeee730a555ece749e7b3104bbd486f10.tar.gz yuzu-19250aadeee730a555ece749e7b3104bbd486f10.tar.xz yuzu-19250aadeee730a555ece749e7b3104bbd486f10.zip | |
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.
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/configuration/configure_ui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
| 63 | const QString& filename = QFileDialog::getExistingDirectory( | 63 | const QString& filename = QFileDialog::getExistingDirectory( |
| 64 | this, tr("Select Screenshots Path..."), | 64 | this, tr("Select Screenshots Path..."), |
| 65 | QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ScreenshotsDir))); | 65 | QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ScreenshotsDir))); |
| 66 | ui->screenshot_path_edit->setText(filename); | 66 | if (!filename.isEmpty()) { |
| 67 | ui->screenshot_path_edit->setText(filename); | ||
| 68 | } | ||
| 67 | }); | 69 | }); |
| 68 | } | 70 | } |
| 69 | 71 | ||