[QGIS Commit] r9728 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Dec 2 08:02:30 EST 2008


Author: jef
Date: 2008-12-02 08:02:30 -0500 (Tue, 02 Dec 2008)
New Revision: 9728

Modified:
   trunk/qgis/src/core/qgsmaplayer.cpp
Log:
fix #1441

Modified: trunk/qgis/src/core/qgsmaplayer.cpp
===================================================================
--- trunk/qgis/src/core/qgsmaplayer.cpp	2008-12-02 06:42:54 UTC (rev 9727)
+++ trunk/qgis/src/core/qgsmaplayer.cpp	2008-12-02 13:02:30 UTC (rev 9728)
@@ -452,6 +452,9 @@
 
   QgsDebugMsg( QString( "Trying to load style for \"%1\" from \"%2\"" ).arg( theURI ).arg( db ) );
 
+  if( !QFile( db ).exists() )
+    return false;
+
   myResult = sqlite3_open( db.toUtf8().data(), &myDatabase );
   if ( myResult != SQLITE_OK )
   {



More information about the QGIS-commit mailing list