Skip to content

Commit

Permalink
Merge pull request #121 from lynxlynxlynx/master
Browse files Browse the repository at this point in the history
fix for one abort and a few SIP compile warnings
  • Loading branch information
wonder-sk committed Apr 13, 2012
2 parents 0358ddc + 15f1485 commit 1e193c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/analysis/analysis.sip
@@ -1,4 +1,4 @@
%Module qgis.analysis 0
%Module(name=qgis.analysis, version=0)

%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip
Expand Down
2 changes: 1 addition & 1 deletion python/core/core.sip
@@ -1,4 +1,4 @@
%Module qgis.core 0
%Module(name=qgis.core, version=0)

%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip
Expand Down
10 changes: 7 additions & 3 deletions src/app/qgisapp.cpp
Expand Up @@ -2290,12 +2290,16 @@ bool QgisApp::addVectorLayers( QStringList const & theLayerQStringList, const QS

// since the layer is bad, stomp on it
delete layer;

// XXX should we return false here, or just grind through
// XXX the remaining arguments?
}

}

// make sure at least one layer was succesfully added
if ( myList.count() == 0 )
{
return false;
}

// Register this layer with the layers registry
QgsMapLayerRegistry::instance()->addMapLayers( myList );

Expand Down

0 comments on commit 1e193c3

Please sign in to comment.