summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxperia64 <xperiancedapps@gmail.com>2019-01-20 04:10:30 +0100
committerfearlessTobi <thm.frey@gmail.com>2019-02-05 22:31:37 +0100
commit284536a62611850229c3a33d352223f496cce528 (patch)
tree0f820679ff9f8d69968a3b77c11c0641e72bc51a
parentMerge pull request #2081 from ReinUsesLisp/lmem-64 (diff)
downloadyuzu-284536a62611850229c3a33d352223f496cce528.tar
yuzu-284536a62611850229c3a33d352223f496cce528.tar.gz
yuzu-284536a62611850229c3a33d352223f496cce528.tar.bz2
yuzu-284536a62611850229c3a33d352223f496cce528.tar.lz
yuzu-284536a62611850229c3a33d352223f496cce528.tar.xz
yuzu-284536a62611850229c3a33d352223f496cce528.tar.zst
yuzu-284536a62611850229c3a33d352223f496cce528.zip
-rw-r--r--src/yuzu/main.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index ab403b3ac..3a105dc4f 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1682,9 +1682,13 @@ void GMainWindow::OnToggleFilterBar() {
void GMainWindow::OnCaptureScreenshot() {
OnPauseGame();
- const QString path =
- QFileDialog::getSaveFileName(this, tr("Capture Screenshot"),
- UISettings::values.screenshot_path, tr("PNG Image (*.png)"));
+ QFileDialog png_dialog(this, tr("Capture Screenshot"), UISettings::values.screenshot_path,
+ tr("PNG Image (*.png)"));
+ png_dialog.setAcceptMode(QFileDialog::AcceptSave);
+ png_dialog.setDefaultSuffix("png");
+ png_dialog.exec();
+
+ const QString path = png_dialog.selectedFiles().first();
if (!path.isEmpty()) {
UISettings::values.screenshot_path = QFileInfo(path).path();
render_window->CaptureScreenshot(UISettings::values.screenshot_resolution_factor, path);