Fixed typo when closing tempfile in bitmessageqt.__init__

This commit is contained in:
Dmitri Bogomolov 2017-10-09 12:09:09 +03:00
parent 9dae77dd2b
commit 59d1309a9e
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -3994,8 +3994,9 @@ class settingsDialog(QtGui.QDialog):
else:
try:
import tempfile
file = tempfile.NamedTemporaryFile(dir=paths.lookupExeFolder(), delete=True)
file.close # should autodelete
tempfile.NamedTemporaryFile(
dir=paths.lookupExeFolder(), delete=True
).close() # should autodelete
except:
self.ui.checkBoxPortableMode.setDisabled(True)