Skip to content
Snippets Groups Projects
Commit 2863f4e5 authored by Kien Le's avatar Kien Le
Browse files

Fix back and forward buttons in search messages dialog not working

parent 6e92737c
No related branches found
No related tags found
1 merge request!235Fix back and forward buttons in search messages dialog not working
......@@ -503,7 +503,7 @@ class SearchMessageDialog(QtWidgets.QWidget):
A valid QTableWidgetIem
"""
self.current_table.scrollToItem(
item, QAbstractItemView.ScrollMode.PositionAtTop
item, QAbstractItemView.ScrollHint.PositionAtTop
)
self.current_table.setFocus()
......@@ -535,7 +535,7 @@ class SearchMessageDialog(QtWidgets.QWidget):
# scroll to the first index and place the row at top of the table
self.current_table.scrollToItem(
self.current_table.item(log_indexes[0], 1),
QAbstractItemView.ScrollMode.PositionAtTop
QAbstractItemView.ScrollHint.PositionAtTop
)
# raise the message dialog on top of others
self.setWindowState(QtCore.Qt.WindowState.WindowActive)
......@@ -690,7 +690,7 @@ class SearchMessageDialog(QtWidgets.QWidget):
return
self.selected_item, self.search_rowidx = ret
self.current_table.scrollToItem(
self.selected_item, QAbstractItemView.ScrollMode.PositionAtTop
self.selected_item, QAbstractItemView.ScrollHint.PositionAtTop
)
def _filter_lines_with_search_text_from_soh_messages(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment