Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 c66c9bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/ogr/qgsopenvectorlayerdialog.cpp
Expand Up @@ -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() )
{
Expand Down

0 comments on commit c66c9bb

Please sign in to comment.