Fixed typo when closing tempfile in bitmessageqt.__init__ #1066
|
@ -3994,8 +3994,9 @@ class settingsDialog(QtGui.QDialog):
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
import tempfile
|
import tempfile
|
||||||
file = tempfile.NamedTemporaryFile(dir=paths.lookupExeFolder(), delete=True)
|
tempfile.NamedTemporaryFile(
|
||||||
file.close # should autodelete
|
dir=paths.lookupExeFolder(), delete=True
|
||||||
|
).close() # should autodelete
|
||||||
except:
|
except:
|
||||||
self.ui.checkBoxPortableMode.setDisabled(True)
|
self.ui.checkBoxPortableMode.setDisabled(True)
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user