Commit c4f6453f authored by Stefan Brüns's avatar Stefan Brüns
Browse files

Use correct default value when UDS_ACCESS/UDS_FILE_TYPE is not set

The default value for UDSEntry::numberValue(...) is 0, whereas KFileItem
uses the special value KFileItem::Unknown == (mode_t) -1.

CCBUG: 339193
parent 8334d08f
......@@ -256,8 +256,8 @@ void KFileItemPrivate::readUDSEntry( bool _urlIsDirectory )
{
// extract fields from the KIO::UDS Entry
m_fileMode = m_entry.numberValue( KIO::UDSEntry::UDS_FILE_TYPE );
m_permissions = m_entry.numberValue( KIO::UDSEntry::UDS_ACCESS );
m_fileMode = m_entry.numberValue( KIO::UDSEntry::UDS_FILE_TYPE, KFileItem::Unknown );
m_permissions = m_entry.numberValue( KIO::UDSEntry::UDS_ACCESS, KFileItem::Unknown );
m_strName = m_entry.stringValue( KIO::UDSEntry::UDS_NAME );
const QString displayName = m_entry.stringValue( KIO::UDSEntry::UDS_DISPLAY_NAME );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment