Просмотр исходного кода

configure_ui: Ensure a separator follows the returned path

lat9nq 6 лет назад
Родитель
Сommit
e35239b861
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      src/yuzu/configuration/configure_ui.cpp

+ 5 - 3
src/yuzu/configuration/configure_ui.cpp

@@ -60,9 +60,11 @@ ConfigureUi::ConfigureUi(QWidget* parent) : QWidget(parent), ui(new Ui::Configur
 
 
     // Set screenshot path to user specification.
     // Set screenshot path to user specification.
     connect(ui->screenshot_path_button, &QToolButton::pressed, this, [this] {
     connect(ui->screenshot_path_button, &QToolButton::pressed, this, [this] {
-        const QString& filename = QFileDialog::getExistingDirectory(
-            this, tr("Select Screenshots Path..."),
-            QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ScreenshotsDir)));
+        const QString& filename =
+            QFileDialog::getExistingDirectory(
+                this, tr("Select Screenshots Path..."),
+                QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ScreenshotsDir))) +
+            QDir::separator();
         if (!filename.isEmpty()) {
         if (!filename.isEmpty()) {
             ui->screenshot_path_edit->setText(filename);
             ui->screenshot_path_edit->setText(filename);
         }
         }