Skip to content

Commit ed41853

Browse files
author
g_j_m
committed
Display a warning message when identify fails to find a feature when in
editing mode. Address ticket #331. git-svn-id: http://svn.osgeo.org/qgis/trunk@5993 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c1b9199 commit ed41853

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/gui/qgsmaptoolidentify.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,13 @@ void QgsMapToolIdentify::identifyVectorLayer(QgsVectorLayer* layer, const QgsPoi
390390
}
391391
}
392392
else
393+
{
393394
QApplication::restoreOverrideCursor();
395+
QMessageBox::information(0, tr("No features found"),
396+
tr("<p>No features were found within the search radius. "
397+
"Note that it is currently not possible to use the "
398+
"identify tool on unsaved features.</p>"));
399+
}
394400
}
395401
dataProvider->reset();
396402
}

0 commit comments

Comments
 (0)