mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-16 03:24:14 +02:00
Merge pull request #725 from ispyisail/fix/pdf-export-filename-multiple-dots-forum3005
Fix PDF export truncating project filenames at the first dot
This commit is contained in:
@@ -108,7 +108,7 @@ QString ProjectPrintWindow::docName(QETProject *project)
|
|||||||
{
|
{
|
||||||
QString doc_name;
|
QString doc_name;
|
||||||
if (!project->filePath().isEmpty()) {
|
if (!project->filePath().isEmpty()) {
|
||||||
doc_name = QFileInfo(project->filePath()).baseName();
|
doc_name = QFileInfo(project->filePath()).completeBaseName();
|
||||||
} else if (!project->title().isEmpty()) {
|
} else if (!project->title().isEmpty()) {
|
||||||
doc_name = project->title();
|
doc_name = project->title();
|
||||||
doc_name = QET::stringToFileName(doc_name);
|
doc_name = QET::stringToFileName(doc_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user