Do not display search_count if it is not higher than limit

On small set of record when records are deleted the number of record could
become lower than the initial search_count. As maintaining a correct
search_count is complex, it is simpler to never display it if it is lower than
the search limit.

issue10789
review383501003
(grafted from 07165c9a8fc19768f45170df622e0998e85abee5)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2021-10-31 10:20:24 +01:00
1 parent 4241d914ee
commit e1c87ca543
1 file changed
+2 -1
+2 -1
View File
@@ -640,7 +640,8 @@ class Form(SignalEvent, TabContent):
menu_save.props.sensitive = not self.screen.readonly
msg = name + ' / ' + str(signal_data[1])
if signal_data[1] < signal_data[2]:
if (signal_data[1] < signal_data[2]
and signal_data[2] > self.screen.limit):
msg += _(' of ') + str(signal_data[2])
self.status_label.set_text(msg)
self.message_info()