Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clear delimited text source fields after adding to show something has…
… happened
  • Loading branch information
ccrook committed Feb 20, 2018
1 parent 3e9ce1a commit 25c4fe7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/delimitedtext/qgsdelimitedtextsourceselect.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 25c4fe7

Please sign in to comment.