Add GuiWordList test
This commit is contained in:
@@ -153,7 +153,7 @@ class NWSpellEnchant(NWSpellCheck):
|
||||
try:
|
||||
import enchant
|
||||
if self.theBroker is not None:
|
||||
logger.verbose("Deleting old pyenchant Broker")
|
||||
logger.verbose("Deleting old pyenchant broker")
|
||||
del self.theBroker
|
||||
|
||||
self.theBroker = enchant.Broker()
|
||||
|
||||
+2
-1
@@ -160,13 +160,14 @@ class GuiWordList(QDialog):
|
||||
logger.error("Could not save new word list")
|
||||
nw.logException()
|
||||
self.reject()
|
||||
return False
|
||||
|
||||
if os.path.isfile(dctFile):
|
||||
os.unlink(dctFile)
|
||||
os.rename(tmpFile, dctFile)
|
||||
self.accept()
|
||||
|
||||
return
|
||||
return True
|
||||
|
||||
def _doClose(self):
|
||||
"""Close without saving the word list.
|
||||
|
||||
Reference in New Issue
Block a user