Skip to content
Permalink
Browse files

Merge pull request #5941 from elpaso/bugfix-17673-bookmarks--crash-wh…

…en-docked

[bugfix] Bookmarks fix crash on exit when docked
  • Loading branch information
elpaso committed Dec 23, 2017
2 parents 2872f69 + 63cf7ae commit 7871071394ef74de65921251fcb75ad3e6d4a288
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgsbookmarks.cpp
@@ -107,7 +107,7 @@ QgsBookmarks::QgsBookmarks( QWidget *parent )
mProjectModel = new QgsProjectBookmarksTableModel( this );
mMergedModel = new QgsMergedBookmarksTableModel( *mQgisModel, *mProjectModel, lstBookmarks, this );

mProxyModel = new QgsBookmarksProxyModel( this );
mProxyModel = new QgsBookmarksProxyModel( );
mProxyModel->setSourceModel( mMergedModel );
mProxyModel->setSortCaseSensitivity( Qt::CaseInsensitive );

@@ -136,6 +136,7 @@ QgsBookmarks::QgsBookmarks( QWidget *parent )
QgsBookmarks::~QgsBookmarks()
{
delete mQgisModel;
delete mProxyModel;
QSqlDatabase::removeDatabase( QStringLiteral( "bookmarks" ) );
saveWindowLocation();
}

0 comments on commit 7871071

Please sign in to comment.
You can’t perform that action at this time.