Merge pull request #1385 from xiaoyifang/fix/ctrl-v-in-welcome-page

fix: ctrl+v in Welcome page will result a wrong search
This commit is contained in:
xiaoyifang 2024-01-26 17:13:03 +08:00 committed by GitHub
commit bc8c615d4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1886,7 +1886,7 @@ void ArticleView::pasteTriggered()
if ( !word.isEmpty() ) { if ( !word.isEmpty() ) {
unsigned groupId = getGroup( webview->url() ); unsigned groupId = getGroup( webview->url() );
if ( groupId == 0 ) { if ( groupId == 0 || groupId == Instances::Group::HelpGroupId ) {
// We couldn't figure out the group out of the URL, // We couldn't figure out the group out of the URL,
// so let's try the currently selected group. // so let's try the currently selected group.
groupId = currentGroupId; groupId = currentGroupId;