Skip to content

Commit

Permalink
Default to floating docks for new map views
Browse files Browse the repository at this point in the history
Helps minimise the effects of being unable to restore docked
view positions
  • Loading branch information
nyalldawson committed Mar 13, 2017
1 parent 40bb4e9 commit e1f4171
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9702,7 +9702,7 @@ void QgisApp::newMapCanvas()
}
}

createNewMapCanvas( name );
createNewMapCanvas( name, true );
}

void QgisApp::setExtent( const QgsRectangle &rect )
Expand Down Expand Up @@ -11750,8 +11750,8 @@ void QgisApp::writeProject( QDomDocument &doc )
node.setAttribute( QStringLiteral( "y" ), w->y() );
node.setAttribute( QStringLiteral( "width" ), w->width() );
node.setAttribute( QStringLiteral( "height" ), w->height() );
node.setAttribute( QStringLiteral( "floating" ), w->isFloating() ? QStringLiteral( "1" ) : QStringLiteral( "0" ) );
node.setAttribute( QStringLiteral( "synced" ), w->isViewExtentSynchronized() ? QStringLiteral( "1" ) : QStringLiteral( "0" ) );
node.setAttribute( QStringLiteral( "floating" ), w->isFloating() );
node.setAttribute( QStringLiteral( "synced" ), w->isViewExtentSynchronized() );
mapViewNode.appendChild( node );
}
qgisNode.appendChild( mapViewNode );
Expand Down

0 comments on commit e1f4171

Please sign in to comment.