Don't display standard groups in Open torrent dialog
ClosedPublic

Authored by trufanov on Dec 3 2019, 5:53 PM.

Details

Summary

This seems to be a mistake and is inconsistency with ::loadGroups() in pastedialog.cpp and torrentcreatordlg.cpp

The standard groups (Active uploads, Active downloads etc.) are formed automatically and choosing them in fileselectdlg.cpp gives nothing except a warning message like
"RTTI symbol not found for class 'kt::FunctionGroup<&(bool kt::member<&kt::not_running, &kt::download>(bt::TorrentInterface*))>'"
in stderr.

This patch hides them from the list of available groups. Only "All Torrents" (default, hardcoded) and groups with CUSTOM_GROUP flag (if any) shall be displayed.

Test Plan

Open any *.torrent file.
Try to choose any non custom group. Press Ok.
The torrent still be in "Ungrouped torrents"

Diff Detail

Repository
R473 KTorrent
Lint
Lint Skipped
Unit
Unit Tests Skipped
trufanov requested review of this revision.Dec 3 2019, 5:53 PM
trufanov created this revision.
stikonas accepted this revision.Dec 5 2019, 12:05 AM

By the way, can you upload patches for review with more context next time. E.g. something like git show -U999

This revision is now accepted and ready to land.Dec 5 2019, 12:05 AM
This revision was automatically updated to reflect the committed changes.