[fix] show the default filename in 'Export As' dialog (#35)

This commit is contained in:
Xianzhong Wang 2017-08-22 20:28:58 +08:00 committed by Le Tan
parent 1d0c80d5b5
commit dc98b5ef00

View File

@ -123,7 +123,7 @@ void VExporter::handleBrowseBtnClicked()
tr("Portable Document Format (*.pdf)") : tr("Portable Document Format (*.pdf)") :
tr("WebPage, Complete (*.html)"); tr("WebPage, Complete (*.html)");
QString path = QFileDialog::getSaveFileName(this, tr("Export As"), QString path = QFileDialog::getSaveFileName(this, tr("Export As"),
fi.absolutePath(), fi.absoluteFilePath(),
fileType); fileType);
if (path.isEmpty()) { if (path.isEmpty()) {
return; return;