Changeset View
Changeset View
Standalone View
Standalone View
src/panels/information/informationpanelcontent.cpp
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Line(s) | 155 | { | |||
---|---|---|---|---|---|
156 | InformationPanelSettings::self()->save(); | 156 | InformationPanelSettings::self()->save(); | ||
157 | } | 157 | } | ||
158 | 158 | | |||
159 | void InformationPanelContent::showItem(const KFileItem& item) | 159 | void InformationPanelContent::showItem(const KFileItem& item) | ||
160 | { | 160 | { | ||
161 | if (item != m_item) { | 161 | if (item != m_item) { | ||
162 | m_item = item; | 162 | m_item = item; | ||
163 | 163 | | |||
164 | refreshPreview(); | | |||
165 | refreshMetaData(); | 164 | refreshMetaData(); | ||
166 | } | 165 | } | ||
166 | refreshPreview(); | ||||
167 | } | 167 | } | ||
168 | 168 | | |||
169 | void InformationPanelContent::refreshPreview() | 169 | void InformationPanelContent::refreshPreview() | ||
170 | { | 170 | { | ||
171 | // If there is a preview job, kill it to prevent that we have jobs for | 171 | // If there is a preview job, kill it to prevent that we have jobs for | ||
172 | // multiple items running, and thus a race condition (bug 250787). | 172 | // multiple items running, and thus a race condition (bug 250787). | ||
173 | if (m_previewJob) { | 173 | if (m_previewJob) { | ||
174 | m_previewJob->kill(); | 174 | m_previewJob->kill(); | ||
▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines |