Skip to content

Commit bceb8ff

Browse files
committedMar 2, 2017
fix exporting bookmarks
1 parent bd58bc3 commit bceb8ff

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed
 

‎src/app/qgsbookmarks.cpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,15 @@ void QgsBookmarks::exportToXml()
349349
int colCount = mModel->columnCount();
350350

351351
QList<QString> headerList;
352-
headerList << QStringLiteral( "id" ) << QStringLiteral( "name" ) << QStringLiteral( "project" ) << QStringLiteral( "xmin" )
353-
<< QStringLiteral( "ymin" ) << QStringLiteral( "xmax" ) << QStringLiteral( "ymax" ) << QStringLiteral( "sr_id" );
352+
headerList
353+
<< QStringLiteral( "id" )
354+
<< QStringLiteral( "name" )
355+
<< QStringLiteral( "project" )
356+
<< QStringLiteral( "xmin" )
357+
<< QStringLiteral( "ymin" )
358+
<< QStringLiteral( "xmax" )
359+
<< QStringLiteral( "ymax" )
360+
<< QStringLiteral( "sr_id" );
354361

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

389-
390396
QgsProjectBookmarksTableModel::QgsProjectBookmarksTableModel()
391397
{
392398
QObject::connect(
@@ -404,8 +410,7 @@ int QgsProjectBookmarksTableModel::rowCount( const QModelIndex& parent ) const
404410
int QgsProjectBookmarksTableModel::columnCount( const QModelIndex& parent ) const
405411
{
406412
Q_UNUSED( parent );
407-
408-
return 8;
413+
return 7;
409414
}
410415

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

0 commit comments

Comments
 (0)
Please sign in to comment.