Skip to content

Commit

Permalink
fix exporting bookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Mar 2, 2017
1 parent bd58bc3 commit bceb8ff
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/app/qgsbookmarks.cpp
Expand Up @@ -349,8 +349,15 @@ void QgsBookmarks::exportToXml()
int colCount = mModel->columnCount();

QList<QString> headerList;
headerList << QStringLiteral( "id" ) << QStringLiteral( "name" ) << QStringLiteral( "project" ) << QStringLiteral( "xmin" )
<< QStringLiteral( "ymin" ) << QStringLiteral( "xmax" ) << QStringLiteral( "ymax" ) << QStringLiteral( "sr_id" );
headerList
<< QStringLiteral( "id" )
<< QStringLiteral( "name" )
<< QStringLiteral( "project" )
<< QStringLiteral( "xmin" )
<< QStringLiteral( "ymin" )
<< QStringLiteral( "xmax" )
<< QStringLiteral( "ymax" )
<< QStringLiteral( "sr_id" );

for ( int i = 0; i < rowCount; ++i )
{
Expand Down Expand Up @@ -386,7 +393,6 @@ void QgsBookmarks::exportToXml()
settings.setValue( QStringLiteral( "/Windows/Bookmarks/LastUsedDirectory" ), QFileInfo( fileName ).path() );
}


QgsProjectBookmarksTableModel::QgsProjectBookmarksTableModel()
{
QObject::connect(
Expand All @@ -404,8 +410,7 @@ int QgsProjectBookmarksTableModel::rowCount( const QModelIndex& parent ) const
int QgsProjectBookmarksTableModel::columnCount( const QModelIndex& parent ) const
{
Q_UNUSED( parent );

return 8;
return 7;
}

QVariant QgsProjectBookmarksTableModel::data( const QModelIndex& index, int role ) const
Expand Down

0 comments on commit bceb8ff

Please sign in to comment.