Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug where directories and the tree root of the layer selector l…
…ist view box were being passed to omgui as layers.

git-svn-id: http://svn.osgeo.org/qgis/trunk@2857 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
sbr00pwb committed Feb 22, 2005
1 parent 4a9d4a7 commit 83cadbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/openmodeller/layerselector.cpp
Expand Up @@ -94,7 +94,8 @@ void LayerSelector::pbnOK_clicked()
QListViewItemIterator myIterator (listParent);
while (myIterator.current())
{
if (myIterator.current()->isSelected())
//Check whether the item is selected and that it is not a directory or the tree root
if ((myIterator.current()->isSelected()) && !((myIterator.current()->text(1)=="DIR") || (myIterator.current()->text(1)=="")))
{
if (myIterator.current()->text(1)=="AIG")
{
Expand Down

0 comments on commit 83cadbb

Please sign in to comment.