Fix wrong conditional

This commit is contained in:
Florian Bruhin 2014-05-21 15:50:08 +02:00
parent 2df8500792
commit 1f4ca39e53

View File

@ -100,7 +100,7 @@ class ExternalEditor(QObject):
raise ValueError("Already editing a file!")
self.text = text
self.oshandle, self.filename = mkstemp(text=True)
if not text:
if text:
with open(self.filename, 'w') as f:
f.write(text)
self.proc = QProcess(self)