Added status message when search is cancelled by closing results tab (#416).

This commit is contained in:
Paul Kulchenko
2015-04-23 09:50:44 -07:00
parent 354951203d
commit ee35d4bf8a

View File

@@ -560,8 +560,8 @@ function findReplace:RunInFiles(replace)
reseditor:EnsureVisibleEnforcePolicy(reseditor:GetLineCount()-1)
end
self:SetStatus(
TR("Found %d instance.", self.occurrences):format(self.occurrences))
self:SetStatus(not completed and TR("Cancelled by the user.")
or TR("Found %d instance.", self.occurrences):format(self.occurrences))
self.oveditor = nil
self.toolbar:UpdateWindowUI(wx.wxUPDATE_UI_FROMIDLE)
end