Helpviewer/History/HistoryManager.py

changeset 644
7c1c3abedf1c
parent 539
87f9bce38a44
child 791
9ec2ac20e54e
--- a/Helpviewer/History/HistoryManager.py	Sun Sep 26 20:25:09 2010 +0200
+++ b/Helpviewer/History/HistoryManager.py	Mon Sep 27 08:09:27 2010 +0200
@@ -374,6 +374,7 @@
             
             history.insert(0, itm)
             lastInsertedItem = itm
+        historyFile.close()
         
         if needToSort:
             history.sort()
@@ -463,4 +464,4 @@
         Private method to start the timer to recalculate the frequencies.
         """
         tomorrow = QDateTime(QDate.currentDate().addDays(1), QTime(3, 0))
-        self.__frequencyTimer.start(QDateTime.currentDateTime().secsTo(tomorrow) * 1000)
\ No newline at end of file
+        self.__frequencyTimer.start(QDateTime.currentDateTime().secsTo(tomorrow) * 1000)

eric ide

mercurial