Changeset View
Changeset View
Standalone View
Standalone View
src/panels/information/informationpanelcontent.cpp
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Line(s) | |||||
161 | 161 | | |||
162 | InformationPanelContent::~InformationPanelContent() | 162 | InformationPanelContent::~InformationPanelContent() | ||
163 | { | 163 | { | ||
164 | InformationPanelSettings::self()->save(); | 164 | InformationPanelSettings::self()->save(); | ||
165 | } | 165 | } | ||
166 | 166 | | |||
167 | void InformationPanelContent::showItem(const KFileItem& item) | 167 | void InformationPanelContent::showItem(const KFileItem& item) | ||
168 | { | 168 | { | ||
169 | if (item != m_item) { | 169 | // compares item entries, comparing items only compares urls | ||
170 | if (m_item.entry() != item.entry()) { | ||||
170 | m_item = item; | 171 | m_item = item; | ||
171 | | ||||
172 | m_preview->stopAnimatedImage(); | 172 | m_preview->stopAnimatedImage(); | ||
173 | refreshMetaData(); | 173 | refreshMetaData(); | ||
174 | } | 174 | } | ||
175 | | ||||
175 | refreshPreview(); | 176 | refreshPreview(); | ||
176 | } | 177 | } | ||
177 | 178 | | |||
178 | void InformationPanelContent::refreshPixmapView() | 179 | void InformationPanelContent::refreshPixmapView() | ||
179 | { | 180 | { | ||
180 | // If there is a preview job, kill it to prevent that we have jobs for | 181 | // If there is a preview job, kill it to prevent that we have jobs for | ||
181 | // multiple items running, and thus a race condition (bug 250787). | 182 | // multiple items running, and thus a race condition (bug 250787). | ||
182 | if (m_previewJob) { | 183 | if (m_previewJob) { | ||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |