Skip to content

Commit c66c9bb

Browse files
committedAug 15, 2015
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)
1 parent 7687204 commit c66c9bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/app/ogr/qgsopenvectorlayerdialog.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ void QgsOpenVectorLayerDialog::on_buttonSelectSrc_clicked()
271271
{
272272
if ( radioSrcFile->isChecked() )
273273
{
274-
inputSrcDataset->setText( openFile().join( ";" ) );
274+
QStringList selected = openFile();
275+
if ( selected.count() > 0 )
276+
inputSrcDataset->setText( selected.join( ";" ) );
275277
}
276278
else if ( radioSrcDirectory->isChecked() )
277279
{

0 commit comments

Comments
 (0)
Please sign in to comment.