]> cloud.milkyroute.net Git - dolphin.git/commit
Fix potential endless loop in layout
authorPeter Penz <peter.penz19@gmail.com>
Sun, 5 Feb 2012 18:14:17 +0000 (19:14 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 5 Feb 2012 18:22:34 +0000 (19:22 +0100)
commit7af39fb960352e0504153c627db0615d80758ebe
tree93427542fb54d7ea854d82d09b72a3ddc7b5b8bb
parentd0933155e2dc179cde49b4306ff7feee9ca47697
Fix potential endless loop in layout

Usecase:
- No scrollbar is shown
- Window size will be decreased so that a scrollbar gets necessary

The decreased window size minus the space required for the scrollbar
results in a relayout of the items. In 99 % of all
cases a decreased window size won't result in showing more items in parallel in
comparison to a larger window size. However in the remaining 1 % this can
happen (e.g. see bug 293318 for a sample). This results in an endless loop as
now no scrollbar is required anymore, the layout changes again, the scrollbar
is required again, ...

BUG: 293318
FIXED-IN: 4.8.1
src/kitemviews/kitemlistcontainer.cpp
src/kitemviews/kitemlistcontainer.h
src/kitemviews/kitemlistview.cpp
src/kitemviews/kitemlistview.h