diff options
| author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2025-11-06 13:35:12 +0000 |
|---|---|---|
| committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2025-11-06 13:35:12 +0000 |
| commit | d38df72241cfe8604c5c2912268afc4fadb57472 (patch) | |
| tree | cdcf0e6189c0bd595b266f71cc848d445061ee30 /graphics/partio/files/patch-src_tools_partedit.py | |
| parent | 8df09e6d8e9f91f91309dfe20a4b475c41f9a2a6 (diff) | |
Diffstat (limited to 'graphics/partio/files/patch-src_tools_partedit.py')
| -rw-r--r-- | graphics/partio/files/patch-src_tools_partedit.py | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/graphics/partio/files/patch-src_tools_partedit.py b/graphics/partio/files/patch-src_tools_partedit.py index 2e94e5fe088f..b4839ac8f8e8 100644 --- a/graphics/partio/files/patch-src_tools_partedit.py +++ b/graphics/partio/files/patch-src_tools_partedit.py @@ -1,13 +1,11 @@ ---- src/tools/partedit.py.orig 2021-10-18 09:08:43 UTC +--- src/tools/partedit.py.orig 2025-01-28 22:44:08 UTC +++ src/tools/partedit.py -@@ -72,9 +72,7 @@ def getAttrs(numAttributesFunc, attributeInfoFunc, sor - numAttr = numAttributesFunc() +@@ -1080,7 +1080,7 @@ class PartEdit(QMainWindow): + def dataDirtiedSlot(self, dirty): + """ Sets the window title with or without "*" for dirty state """ - nameToIndex = {attributeInfoFunc(anum).name:anum for anum in range(numAttr)} -- names = nameToIndex.keys() -- if sort: -- names.sort() -+ names = sorted(nameToIndex) if sort else nameToIndex.keys() - - id_offset = 0 - for name in names: +- title = self.data.filename ++ title = self.data.filename or '' + if dirty: + title += '*' + self.setWindowTitle(title) |
