From 424642cb3d778ae546e1f6cb3a587c163288a18c Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Thu, 14 Sep 2023 08:06:42 +0800 Subject: [PATCH] fix: suggestion list scroll to the top --- src/ui/translatebox.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/translatebox.cc b/src/ui/translatebox.cc index 403c1785..ef890a63 100644 --- a/src/ui/translatebox.cc +++ b/src/ui/translatebox.cc @@ -101,6 +101,8 @@ void TranslateBox::setModel( QStringList & _words ) model->setStringList( _words ); + completer->popup()->scrollToTop(); + connect( completer, QOverload< const QString & >::of( &QCompleter::activated ), translate_line,