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

Merge branch 'bug-#210-search_messages_dialog_back_forward_buttons_do_not_work' into 'master'

Fix back and forward buttons in search messages dialog not working

Closes #210

See merge request !235
parents 6e92737c 2863f4e5
No related branches found
No related tags found
1 merge request!235Fix back and forward buttons in search messages dialog not working
Pipeline #3460 passed with stage
in 7 minutes and 10 seconds
......@@ -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