Skip to content

fix Global search when Kad is disabled - #38

Merged
got3nks merged 1 commit into
amule-org:masterfrom
danim7:fix-global-search-kad-disabled
Jun 9, 2026
Merged

fix Global search when Kad is disabled#38
got3nks merged 1 commit into
amule-org:masterfrom
danim7:fix-global-search-kad-disabled

Conversation

@danim7

@danim7 danim7 commented Jun 9, 2026

Copy link
Copy Markdown

Fix Global search not working if Kad is disabled

Steps to reproduce:

  1. Set-up Networks as:
  • ED2K: Enabled
  • Kad: Disabled
  1. In the search Tab, select Type = Global and search something. You get this error message:
cap

Fix: Remove the wrong selection += 1 when Kad is disabled, which is just wrong. Also, add a comment explaining why do we modify the selection index.

Tests:
Tested the 4 combinations, all work as expected now:

Kad Enabled + ED2K Enabled
Kad Enabled + ED2K Disabled
Kad Disabled + ED2K Enabled
Kad Disabled + ED2K Disabled

@got3nks

got3nks commented Jun 9, 2026

Copy link
Copy Markdown

Thanks @danim7 !

@got3nks
got3nks merged commit 9f38ac5 into amule-org:master Jun 9, 2026
10 checks passed
@danim7
danim7 deleted the fix-global-search-kad-disabled branch June 12, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants