From dc98b5ef004f2cddd8d7087812632e8aea94abd8 Mon Sep 17 00:00:00 2001 From: Xianzhong Wang Date: Tue, 22 Aug 2017 20:28:58 +0800 Subject: [PATCH] [fix] show the default filename in 'Export As' dialog (#35) --- src/vexporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vexporter.cpp b/src/vexporter.cpp index 496e2a48..dd24c3ec 100644 --- a/src/vexporter.cpp +++ b/src/vexporter.cpp @@ -123,7 +123,7 @@ void VExporter::handleBrowseBtnClicked() tr("Portable Document Format (*.pdf)") : tr("WebPage, Complete (*.html)"); QString path = QFileDialog::getSaveFileName(this, tr("Export As"), - fi.absolutePath(), + fi.absoluteFilePath(), fileType); if (path.isEmpty()) { return;