From 821460600690723043ec844b4187362ca758a6a3 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 3 Sep 2010 17:57:38 +0200 Subject: ok, it seems working now. But I'm not sure this is the right fix.. --- src/bookmarks/bookmarkspanel.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bookmarks/bookmarkspanel.cpp') diff --git a/src/bookmarks/bookmarkspanel.cpp b/src/bookmarks/bookmarkspanel.cpp index 27c60e46..e11c0280 100644 --- a/src/bookmarks/bookmarkspanel.cpp +++ b/src/bookmarks/bookmarkspanel.cpp @@ -133,6 +133,9 @@ void BookmarksPanel::onExpand(const QModelIndex &index) void BookmarksPanel::loadFoldedState(const QModelIndex &root) { QAbstractItemModel *model = panelTreeView()->model(); + if(!model) + return; + int count = model->rowCount(root); QModelIndex index; -- cgit v1.2.1