Skip to content
Permalink
Browse files

Fix virtual layer url escaping in main app

  • Loading branch information
Hugo Mercier
Hugo Mercier committed Jan 18, 2016
1 parent 4ccb08d commit e0f1137059016f18705deea4fe0ac5c66137982e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/virtual/qgsvirtuallayersourceselect.cpp
@@ -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() )
{

0 comments on commit e0f1137

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