mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kio: merge KFileItem::refreshMimeType() into KFileItem::refresh()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
edbdb6dfbe
commit
c5d63044f5
2 changed files with 2 additions and 17 deletions
|
@ -319,7 +319,8 @@ void KFileItem::refresh()
|
|||
|
||||
d->m_fileMode = KFileItem::Unknown;
|
||||
d->m_permissions = KFileItem::Unknown;
|
||||
refreshMimeType();
|
||||
d->m_pMimeType = nullptr;
|
||||
d->m_iconName.clear();
|
||||
|
||||
// basically, can't trust any information while listing. everything could have changed.
|
||||
// clearing m_entry makes it possible to detect changes in the size of the file, the time
|
||||
|
@ -328,16 +329,6 @@ void KFileItem::refresh()
|
|||
d->init();
|
||||
}
|
||||
|
||||
void KFileItem::refreshMimeType()
|
||||
{
|
||||
if (!d) {
|
||||
return;
|
||||
}
|
||||
|
||||
d->m_pMimeType = nullptr;
|
||||
d->m_iconName.clear();
|
||||
}
|
||||
|
||||
void KFileItem::setUrl(const KUrl &url)
|
||||
{
|
||||
if (!d) {
|
||||
|
|
|
@ -104,12 +104,6 @@ public:
|
|||
*/
|
||||
void refresh();
|
||||
|
||||
/**
|
||||
* Re-reads mimetype information.
|
||||
* This is called when the mimetype database changes.
|
||||
*/
|
||||
void refreshMimeType();
|
||||
|
||||
/**
|
||||
* Returns the url of the file.
|
||||
* @return the url of the file
|
||||
|
|
Loading…
Add table
Reference in a new issue