Merge pull request #1598 from anna-marina/export-prefill-fix
Pre-fill full file base name on export. Fix #1552.
This commit is contained in:
commit
45017535c7
1 changed files with 1 additions and 1 deletions
|
|
@ -2097,7 +2097,7 @@ void MainWindow::actionExport(export_type_e, QString, QString)
|
|||
|
||||
QString title = QString(_("Export %1 File")).arg(type_name);
|
||||
QString filter = QString(_("%1 Files (*%2)")).arg(type_name, suffix);
|
||||
QString filename = this->fileName.isEmpty() ? QString(_("Untitled")) + suffix : QFileInfo(this->fileName).baseName() + suffix;
|
||||
QString filename = this->fileName.isEmpty() ? QString(_("Untitled")) + suffix : QFileInfo(this->fileName).completeBaseName() + suffix;
|
||||
QString export_filename = QFileDialog::getSaveFileName(this, title, filename, filter);
|
||||
if (export_filename.isEmpty()) {
|
||||
clearCurrentOutput();
|
||||
|
|
|
|||
Loading…
Reference in a new issue