<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Aaron J. Seigo wrote:
<blockquote cite="mid:200905121345.17305.aseigo@kde.org" type="cite">
<pre wrap="">On Tuesday 12 May 2009, SUJITH H wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I am able to iterate the row's. But have no clue how to retrieve the url
of that sorted Favorite item :(
</pre>
</blockquote>
<pre wrap=""><!---->
KUrl url = childData->data(Kickoff::UrlRole);
</pre>
</blockquote>
<br>
I am getting segmentation fault when I run 'plasmoidviewer launcher'. <br>
I had modified the sortFavorites. So the method becomes:<br>
<br>
void FavoritesModel::sortFavorites(Qt::SortOrder order)<br>
{<br>
foreach (FavoritesModel *model, Private::models) {<br>
model->d->headerItem->sortChildren(0, order);<br>
}<br>
FavoritesModel *model;<br>
QStandardItem *childData;<br>
for (int i = 0; i < numberOfFavorites(); i++) {<br>
childData = model->d->headerItem->child(i, 0);<br>
kDebug() << "Url = " <<
childData->data(Kickoff::UrlRole);<br>
}<br>
Private::saveFavorites();<br>
}<br>
<br>
<br>
Any clue why am getting segmentation fault here?<br>
<br>
<br>
Sujith H<br>
</body>
</html>