ports/multimedia/minitube/files/patch-src_ytregions.cpp
Yuri Victorovich 0f2190c067 multimedia/minitube: Update to 2.9
Additional port changes:
* Replaced with DISTVERSION
* Removed INSTALLS_ICONS (not a gtk app)
* Added the patch with the workaround for the build failure

Approved by:	tcberner (mentor, implicit)
2018-02-16 08:36:10 +00:00

11 lines
503 B
C++

--- src/ytregions.cpp.orig 2018-02-16 08:18:19 UTC
+++ src/ytregions.cpp
@@ -84,7 +84,7 @@ YTRegion YTRegions::r(const QString &nam
}
const YTRegion &YTRegions::localRegion() {
- static const YTRegion region = [] {
+ static const YTRegion region = []() -> const YTRegion { // workaround for https://github.com/flaviotordini/minitube/issues/99
QString country = QLocale::system().name().right(2);
for (const YTRegion &r : list()) {
if (r.id == country) return r;