Commit 1ea8dbc3 authored by Kevin Ottens's avatar Kevin Ottens
Browse files

Don't use deprecated API.

svn path=/trunk/KDE/kdepim/runtime/; revision=1199934
parent d75c732e
......@@ -43,7 +43,8 @@ bool SerializerPluginBookmark::deserialize( Item& item, const QByteArray& label,
KBookmark bk;
QMimeData *mimeData = new QMimeData();
mimeData->setData( QString::fromLatin1( "application/x-xbel" ), data.readAll() );
KBookmark::List bkl = KBookmark::List::fromMimeData( mimeData );
QDomDocument doc;
KBookmark::List bkl = KBookmark::List::fromMimeData( mimeData, doc );
if ( !bkl.isEmpty() )
item.setPayload<KBookmark>( bkl[0] );
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