Skip to content

Commit

Permalink
tab: Do not treat empty files as modified after opening them
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya57 committed Feb 27, 2021
1 parent b7cb610 commit 995dc3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ReText/tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ def readTextFromFile(self, fileName=None, encoding=None):

self.editBox.setPlainText(text)
self.editBox.document().setModified(False)
self.handleModificationChanged()

cssFileName = self.getBaseName() + '.css'
self.cssFileExists = QFile.exists(cssFileName)
Expand Down

0 comments on commit 995dc3e

Please sign in to comment.