Skip to content
Permalink
Browse files

Default to floating docks for new map views

Helps minimise the effects of being unable to restore docked
view positions
  • Loading branch information
nyalldawson committed Mar 13, 2017
1 parent 40bb4e9 commit e1f41715309fda5016966bbdc3bc6399df4c1376
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/qgisapp.cpp
@@ -9702,7 +9702,7 @@ void QgisApp::newMapCanvas()
}
}

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

void QgisApp::setExtent( const QgsRectangle &rect )
@@ -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 );

0 comments on commit e1f4171

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