Skip to content

Commit

Permalink
Save/restore header state for bookmarks view
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Jun 2, 2013
1 parent 8a712b4 commit 6dfd7ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgsbookmarks.cpp
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 6dfd7ce

Please sign in to comment.