Skip to content

Commit

Permalink
Fix virtual layer url escaping in main app
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Jan 18, 2016
1 parent 4ccb08d commit e0f1137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/virtual/qgsvirtuallayersourceselect.cpp
Expand Up @@ -47,7 +47,7 @@ QgsVirtualLayerSourceSelect::QgsVirtualLayerSourceSelect( QWidget* parent, Qt::W
// reuse the configuration of this virtual layer
mReplaceLayer->setEnabled( true );

QgsVirtualLayerDefinition def = QgsVirtualLayerDefinition::fromUrl( QUrl( selected[0]->source() ) );
QgsVirtualLayerDefinition def = QgsVirtualLayerDefinition::fromUrl( QUrl::fromEncoded( selected[0]->source().toUtf8() ) );

if ( !def.query().isEmpty() )
{
Expand Down

0 comments on commit e0f1137

Please sign in to comment.