Skip to content

Commit 3d97dc4

Browse files
author
jef
committed
fix #1441
git-svn-id: http://svn.osgeo.org/qgis/trunk@9728 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent eb8270e commit 3d97dc4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/qgsmaplayer.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,9 @@ bool QgsMapLayer::loadNamedStyleFromDb( const QString db, const QString theURI,
452452

453453
QgsDebugMsg( QString( "Trying to load style for \"%1\" from \"%2\"" ).arg( theURI ).arg( db ) );
454454

455+
if( !QFile( db ).exists() )
456+
return false;
457+
455458
myResult = sqlite3_open( db.toUtf8().data(), &myDatabase );
456459
if ( myResult != SQLITE_OK )
457460
{

0 commit comments

Comments
 (0)