Skip to content
Permalink
Browse files

If user clicks cancel while browsing for file then don't clear

the existing filename in the vector open file dialog

(cherry-picked from 1a91ae8)
  • Loading branch information
nyalldawson committed Aug 15, 2015
1 parent 7687204 commit c66c9bbdcf48e9de0c36af6b9aec28a682d35759
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/app/ogr/qgsopenvectorlayerdialog.cpp
@@ -271,7 +271,9 @@ void QgsOpenVectorLayerDialog::on_buttonSelectSrc_clicked()
{
if ( radioSrcFile->isChecked() )
{
inputSrcDataset->setText( openFile().join( ";" ) );
QStringList selected = openFile();
if ( selected.count() > 0 )
inputSrcDataset->setText( selected.join( ";" ) );
}
else if ( radioSrcDirectory->isChecked() )
{

0 comments on commit c66c9bb

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