Skip to content
Permalink
Browse files

Save/restore header state for bookmarks view

  • Loading branch information
dakcarto committed Jun 2, 2013
1 parent 8a712b4 commit 6dfd7ceb00534f1cfe3cb988e2ad75d2ec8a52e9
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/qgsbookmarks.cpp
@@ -89,6 +89,9 @@ QgsBookmarks::QgsBookmarks( QWidget *parent, Qt::WFlags fl )

lstBookmarks->setModel( model );

QSettings settings;
lstBookmarks->header()->restoreState( settings.value( "/Windows/Bookmarks/headerstate" ).toByteArray() );

#ifndef QGISDEBUG
lstBookmarks->setColumnHidden( 0, true );
#endif
@@ -110,6 +113,7 @@ void QgsBookmarks::saveWindowLocation()
{
QSettings settings;
settings.setValue( "/Windows/Bookmarks/geometry", saveGeometry() );
settings.setValue( "/Windows/Bookmarks/headerstate", lstBookmarks->header()->saveState() );
}

void QgsBookmarks::newBookmark()

0 comments on commit 6dfd7ce

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