Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't close wms layer dialog after addition and allow naming of layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11528 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 30, 2009
1 parent 81c44fd commit 50b4e2b
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 182 deletions.
13 changes: 1 addition & 12 deletions src/app/qgisapp.cpp
Expand Up @@ -2778,18 +2778,7 @@ void QgisApp::addWmsLayer()
QgsDebugMsg( "about to addRasterLayer" );

QgsServerSourceSelect *wmss = new QgsServerSourceSelect( this );

if ( wmss->exec() )
{

addRasterLayer( wmss->connectionInfo(),
/*wmss->connName()*/wmss->selectedLayers().join( "/" ),
"wms",
wmss->selectedLayers(),
wmss->selectedStylesForSelectedLayers(),
wmss->selectedImageEncoding(),
wmss->selectedCrs() );
}
wmss->exec();
}


Expand Down
9 changes: 8 additions & 1 deletion src/app/qgsserversourceselect.cpp
Expand Up @@ -439,7 +439,14 @@ void QgsServerSourceSelect::on_btnAdd_clicked()
}
else
{
accept();
QgisApp::instance()->addRasterLayer(
connectionInfo(),
leLayerName->text().isEmpty() ? selectedLayers().join( "/" ) : leLayerName->text(),
"wms",
selectedLayers(),
selectedStylesForSelectedLayers(),
selectedImageEncoding(),
selectedCrs() );
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsserversourceselect.h
Expand Up @@ -102,7 +102,7 @@ class QgsServerSourceSelect : public QDialog, private Ui::QgsServerSourceSelectB
*/
void on_btnConnect_clicked();

//! Determines the layers the user selected and closes the dialog
//! Determines the layers the user selected
void on_btnAdd_clicked();

//! Opens the Spatial Reference System dialog.
Expand Down

0 comments on commit 50b4e2b

Please sign in to comment.