Fixed typo when closing tempfile in bitmessageqt.__init__ #1066

Merged
g1itch merged 1 commits from ui-fixes into v0.6 2017-10-17 12:43:25 +02:00
Showing only changes of commit 59d1309a9e - Show all commits

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)