diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /graphics/partio/files/patch-src_tools_partedit.py | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
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) |
