Commit 46b39f1a authored by Stefan Brüns's avatar Stefan Brüns Committed by Christoph Cullmann
Browse files

Readjust UDS entry reservation size

Commit 730a5936 ("Add UDS_ACCESS to UDSEntry ...") added an entry,
but omitted to readjust the UDS entry reservation size.
parent 15865bf6
......@@ -269,7 +269,7 @@ void NetworkSlave::listDir( const QUrl& url )
void NetworkSlave::feedEntryAsNetwork( KIO::UDSEntry* entry )
{
entry->reserve(3);
entry->reserve(4);
entry->fastInsert( KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR );
entry->fastInsert( KIO::UDSEntry::UDS_DISPLAY_NAME, i18n("Network"));
// entry->fastInsert( KIO::UDSEntry::UDS_ICON_NAME, NetworkIconName );
......@@ -283,7 +283,7 @@ void NetworkSlave::feedEntryAsNetwork( KIO::UDSEntry* entry )
void NetworkSlave::feedEntryAsDevice( KIO::UDSEntry* entry, const Mollet::NetDevice& deviceData )
{
entry->reserve(4);
entry->reserve(5);
entry->fastInsert( KIO::UDSEntry::UDS_NAME, deviceData.hostAddress() );
entry->fastInsert( KIO::UDSEntry::UDS_DISPLAY_NAME, deviceData.name() );
entry->fastInsert( KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR );
......
Markdown is supported
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