[Marble-commits] KDE/kdeedu/marble/src/lib
Harald Fernengel
harry at kdevelop.org
Wed Sep 1 14:49:56 CEST 2010
SVN commit 1170565 by harald:
do not crash when there are no bookmarks
M +1 -1 BookmarkManager.cpp
--- trunk/KDE/kdeedu/marble/src/lib/BookmarkManager.cpp #1170564:1170565
@@ -91,7 +91,7 @@
QVector<GeoDataFolder*> BookmarkManager::folders() const
{
- return d->m_bookmarkDocument->folderList();
+ return d->m_bookmarkDocument ? d->m_bookmarkDocument->folderList() : QVector<GeoDataFolder*>();
}
void BookmarkManager::addNewBookmarkFolder( const QString &folder)
More information about the Marble-commits
mailing list