Index: src/app/ogr/qgsopenvectorlayerdialog.cpp =================================================================== --- src/app/ogr/qgsopenvectorlayerdialog.cpp (revision 12383) +++ src/app/ogr/qgsopenvectorlayerdialog.cpp (working copy) @@ -346,6 +346,16 @@ protocolURI->text() ) ); } + else if ( radioSrcDirectory->isChecked() ) + { + if ( inputSrcDataset->text().isEmpty() ) + { + QMessageBox::information( this, + tr( "Add directory" ), + tr( "Dataset not defined. Please enter valid dataset path and try again." ) ); + return; + } + } // Save the used encoding settings.setValue( "/UI/encoding", encoding() );