Skip to content

Commit 73e784c

Browse files
committed
partedit: properly handle the scenario where there is no filename
Closes: #111
1 parent 00653bd commit 73e784c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tools/partedit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,8 +1083,7 @@ def addAttributeSlot(self):
10831083
#--------------------------------------------------------------------------
10841084
def dataDirtiedSlot(self, dirty):
10851085
""" Sets the window title with or without "*" for dirty state """
1086-
1087-
title = self.data.filename
1086+
title = self.data.filename or ''
10881087
if dirty:
10891088
title += '*'
10901089
self.setWindowTitle(title)

0 commit comments

Comments
 (0)