Skip to content
Permalink
Browse files

Clear delimited text source fields after adding to show something has…

… happened
  • Loading branch information
ccrook committed Feb 20, 2018
1 parent 3e9ce1a commit 25c4fe7c833c2dede6b7a748f7cb1fd8f0ba0c76
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/providers/delimitedtext/qgsdelimitedtextsourceselect.cpp
@@ -203,6 +203,12 @@ void QgsDelimitedTextSourceSelect::addButtonClicked()

// add the layer to the map
emit addVectorLayer( QString::fromLatin1( url.toEncoded() ), txtLayerName->text() );

// clear the file and layer name show something has happened, ready for another file

mFileWidget->setFilePath( QString() );
txtLayerName->setText( QString() );

if ( widgetMode() == QgsProviderRegistry::WidgetMode::None )
{
accept();

0 comments on commit 25c4fe7

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