mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-01 04:47:53 +00:00
configure_ui: Ensure a separator follows the returned path
This commit is contained in:
parent
19250aadee
commit
e35239b861
1 changed files with 5 additions and 3 deletions
|
@ -60,9 +60,11 @@ ConfigureUi::ConfigureUi(QWidget* parent) : QWidget(parent), ui(new Ui::Configur
|
|||
|
||||
// Set screenshot path to user specification.
|
||||
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()) {
|
||||
ui->screenshot_path_edit->setText(filename);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue