Fix wrong conditional
This commit is contained in:
parent
2df8500792
commit
1f4ca39e53
@ -100,7 +100,7 @@ class ExternalEditor(QObject):
|
|||||||
raise ValueError("Already editing a file!")
|
raise ValueError("Already editing a file!")
|
||||||
self.text = text
|
self.text = text
|
||||||
self.oshandle, self.filename = mkstemp(text=True)
|
self.oshandle, self.filename = mkstemp(text=True)
|
||||||
if not text:
|
if text:
|
||||||
with open(self.filename, 'w') as f:
|
with open(self.filename, 'w') as f:
|
||||||
f.write(text)
|
f.write(text)
|
||||||
self.proc = QProcess(self)
|
self.proc = QProcess(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user