remember allowHTML setting

This commit is contained in:
Damien Elmes 2012-12-22 13:18:28 +09:00
parent 26ae5e1c47
commit be7b293b15
2 changed files with 4 additions and 2 deletions

View File

@ -69,6 +69,7 @@ class ImportDialog(QDialog):
self.connect(self.frm.autoDetect, SIGNAL("clicked()"),
self.onDelimiter)
self.updateDelimiterButtonText()
self.frm.allowHTML.setChecked(self.mw.pm.profile.get('allowHTML', False))
self.exec_()
def setupOptions(self):
@ -137,6 +138,7 @@ you can enter it here. Use \\t to represent tab."""),
return
self.importer.importMode = self.frm.importMode.currentIndex()
self.importer.allowHTML = self.frm.allowHTML.isChecked()
self.mw.pm.profile['allowHTML'] = self.importer.allowHTML
did = self.deck.selectedId()
if did != self.importer.model['did']:
self.importer.model['did'] = did

View File

@ -34,7 +34,6 @@ profileConf = dict(
mainWindowState=None,
numBackups=30,
lastOptimize=intTime(),
# editing
fullSearch=False,
searchHistory=[],
@ -44,11 +43,12 @@ profileConf = dict(
# not exposed in gui
deleteMedia=False,
preserveKeyboard=True,
# syncing
syncKey=None,
syncMedia=True,
autoSync=True,
# importing
allowHTML=False,
)
class ProfileManager(object):