Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6
leechcraft
leechcraft-0.6.70-16373-g319c272718-build.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File leechcraft-0.6.70-16373-g319c272718-build.patch of Package leechcraft
diff --git a/src/plugins/azoth/statuschange.cpp b/src/plugins/azoth/statuschange.cpp index 153697237b..99671819ba 100644 --- a/src/plugins/azoth/statuschange.cpp +++ b/src/plugins/azoth/statuschange.cpp @@ -89,10 +89,10 @@ namespace LC::Azoth::StatusChange return result; } - QString GetStatusText (State state, const QString& override) + QString GetStatusText (State state, const QString& custom) { - if (!override.isEmpty ()) - return override; + if (!custom.isEmpty ()) + return custom; const auto& propName = "DefaultStatus" + QString::number (state); return XmlSettingsManager::Instance () diff --git a/src/plugins/bittorrent/ltutils.cpp b/src/plugins/bittorrent/ltutils.cpp index 77f62c2690..cccf2c0ee9 100644 --- a/src/plugins/bittorrent/ltutils.cpp +++ b/src/plugins/bittorrent/ltutils.cpp @@ -58,6 +58,11 @@ namespace LC::BitTorrent QString::fromStdString (range.last.to_string ()) }; } + + bool IsBlocked (uint32_t flags) + { + return static_cast<bool> (flags & libtorrent::ip_filter::blocked); + } } BanList_t GetFilter (const libtorrent::session& session) @@ -66,9 +71,9 @@ namespace LC::BitTorrent QList<QPair<BanRange_t, bool>> result; for (const auto& range : v4) - result.push_back ({ GetBanRange (range), range.flags }); + result.push_back ({ GetBanRange (range), IsBlocked (range.flags) }); for (const auto& range : v6) - result.push_back ({ GetBanRange (range), range.flags }); + result.push_back ({ GetBanRange (range), IsBlocked (range.flags) }); return result; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor