Skip to content

Commit

Permalink
no layers fix
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4702 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Jan 18, 2006
1 parent c381ce6 commit d592aad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/plugins/grass/qgsgrassselect.cpp
Expand Up @@ -479,7 +479,14 @@ void QgsGrassSelect::on_ok_clicked()
return;
}

if ( type == QgsGrassSelect::VECTOR ) {
if ( type == QgsGrassSelect::VECTOR )
{
if ( elayer->count() == 0 )
{
QMessageBox::warning(0, "No layer",
"No layers available in this map");
return;
}
lastVectorMap = map;
layer = elayer->currentText().stripWhiteSpace();
lastLayer = layer;
Expand Down

0 comments on commit d592aad

Please sign in to comment.