mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Fix scrollbar appearing on FolderView
BUG: 294795 FIXED-IN: 4.14.2 REVIEW: 120057 Workaround for some kind of memory corruption error which can lead to availRect.bottom() being set to 0 after availableScreenRect returns. If this happens, use qdesktopwidget instead.
This commit is contained in:
parent
dd4b4d5bcd
commit
9f2a0643e5
1 changed files with 7 additions and 0 deletions
|
@ -1357,6 +1357,13 @@ void FolderView::updateScreenRegion()
|
|||
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 can lead 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());
|
||||
|
|
Loading…
Reference in a new issue