--- a/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Fri Jan 23 20:27:35 2015 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Sun Jan 25 17:30:53 2015 +0100 @@ -222,11 +222,11 @@ self.inputGroup.hide() if self.paras == 0: - self.contents.insertPlainText( + self.contents.setCurrentCharFormat(self.cNormalFormat) + self.contents.setPlainText( self.tr('There is no difference.')) - return - self.buttonBox.button(QDialogButtonBox.Save).setEnabled(True) + self.buttonBox.button(QDialogButtonBox.Save).setEnabled(self.paras > 0) self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) self.buttonBox.button(QDialogButtonBox.Close).setFocus( Qt.OtherFocusReason)