diff --git a/CHANGELOG.md b/CHANGELOG.md index 4274ae1c11b..011935fead4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -224,6 +224,7 @@ All notable changes to this project will be documented in this file. * removed a leftover debug output that printed every search string of the log widget to stdout * fixed the option to copy the gate library into the project directory in the netlist import dialog staying enabled when the gate library is detected automatically, in which case there is no file to copy and the option had no effect * fixed action enable behavior in View Manager when deleting an entry + * fixed Python editor tabs repeating part of a file name with several dots, e.g. `quirk.v2.v2.py` for `quirk.v2.py` * Build and dependencies * changed the GUI from Qt 5 to Qt 6 * updated the vendored QuaZip from 1.3 to 1.5 as part of the move to Qt 6 diff --git a/plugins/gui/src/python/python_editor.cpp b/plugins/gui/src/python/python_editor.cpp index 10d3a170634..6cada71e701 100644 --- a/plugins/gui/src/python/python_editor.cpp +++ b/plugins/gui/src/python/python_editor.cpp @@ -586,7 +586,7 @@ namespace hal { tab->document()->setModified(false); tab->setFilename(fileName); - mTabWidget->setTabText(mTabWidget->indexOf(tab), info.completeBaseName() + "." + info.completeSuffix()); + mTabWidget->setTabText(mTabWidget->indexOf(tab), info.fileName()); mNewFileCounter--; mPathEditorMap.insert(fileName, tab); @@ -724,7 +724,7 @@ namespace hal mTabWidget->setTabText(index, unnamedTabName); } else - mTabWidget->setTabText(index, info.completeBaseName() + "." + info.completeSuffix()); + mTabWidget->setTabText(index, info.fileName()); } return true;