]> cloud.milkyroute.net Git - dolphin.git/commit
Kill any running preview jobs before starting a new one
authorFrank Reininghaus <frank78ac@googlemail.com>
Mon, 6 Jan 2014 19:15:02 +0000 (20:15 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Mon, 6 Jan 2014 19:15:11 +0000 (20:15 +0100)
commit4ff27ee637f18262bbd09c13156a3cad17636c51
tree719449c161208a0bf38753a07e0f68f2f71e4f47
parent280fa647f15faf8fdd415328d7ff1fd15c621fc9
Kill any running preview jobs before starting a new one

If loading a preview takes long, it was possible before this commit
that a preview for a new item was requested before the first preview
was shown. In that case, there was a race condition, and the first
preview to arrive stayed in the Information Panel.

This commit fixes this by keeping a pointer to the preview job and
killing it before starting a new one.

BUG: 250787
FIXED-IN: 4.12.1
REVIEW: 114561
src/panels/information/informationpanelcontent.cpp
src/panels/information/informationpanelcontent.h