Bug 1136777
| Summary: | KDE bug 294795 (FolderView displays a scrollbar and no icons) workaround patch available but not included | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | ds <dori> |
| Component: | kde-baseapps | Assignee: | Than Ngo <than> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | dvratil, jreznik, kevin, ltinkl, rdieter, rnovacek, than |
| Target Milestone: | --- | Keywords: | Patch |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-02-14 19:35:22 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1139272 | ||
| Bug Blocks: | |||
|
Description
ds
2014-09-03 09:43:39 UTC
I'd be hesitant to include any patch without upstream comment or review. That said, it appears to be quite small:
--- a/plasma/applets/folderview/folderview.cpp 2014-08-13 06:58:14.000000000 +0100
+++ b/plasma/applets/folderview/folderview.cpp 2014-08-26 22:50:58.785527385 +0100
@@ -1357,6 +1357,13 @@
if (c->metaObject()->indexOfSlot("availableScreenRect(int)") != -1) {
QMetaObject::invokeMethod(c, "availableScreenRect",
Qt::DirectConnection, Q_RETURN_ARG(QRect, availRect), Q_ARG(int, screen()));
+
+ // Workaround for bug 294795. Some kind of memory corruption error leads to
+ // availRect.bottom() being set to 0 after availableScreenRect returns.
+ // If this happens, use qdesktopwidget instead.
+ if (availRect.bottom() == 0) {
+ availRect = QApplication::desktop()->availableGeometry(screen());
+ }
} else {
kDebug() << "using qdesktopwidget";
availRect = QApplication::desktop()->availableGeometry(screen());
There's quite interesting debate going on at git review board: https://git.reviewboard.kde.org/r/120057/ I would characterize it as "thorough and thoughtful review", which is precisely the purpose of using a tool like reviewboard. :) And, given that upstream has now given it's blessing/ShipIt!, I'll make sure this fix is included in the next batch of updates released (likely to be included when kde-4.14.1 lands soon). Fix was included here, * Thu Sep 25 2014 Rex Dieter <rdieter> - 4.14.1-2 - pull in upstream fixes, particularly... - Fix scrollbar appearing on FolderView (kde#294795) and, F-21: https://admin.fedoraproject.org/updates/FEDORA-2014-11603/kde-baseapps-4.14.1-2.fc21 F-20: https://admin.fedoraproject.org/updates/FEDORA-2014-11448 |