Skip to content
Permalink
Browse files

fix exporting bookmarks

  • Loading branch information
jef-n committed Mar 2, 2017
1 parent bd58bc3 commit bceb8ff7809ab3ad70b14d19f9b153a00694076f
Showing with 10 additions and 5 deletions.
  1. +10 −5 src/app/qgsbookmarks.cpp
@@ -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 )
{
@@ -386,7 +393,6 @@ void QgsBookmarks::exportToXml()
settings.setValue( QStringLiteral( "/Windows/Bookmarks/LastUsedDirectory" ), QFileInfo( fileName ).path() );
}


QgsProjectBookmarksTableModel::QgsProjectBookmarksTableModel()
{
QObject::connect(
@@ -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

0 comments on commit bceb8ff

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