From 4249cc5dd258f1a175f1bf0b38716eb588716dbe Mon Sep 17 00:00:00 2001 From: timlinux Date: Tue, 12 Sep 2006 23:49:09 +0000 Subject: [PATCH] Show info on QgsDebug if srs db is not found (and path where it was being sought) git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5818 c8812cc2-4d05-0410-92ff-de0c093fc19c --- .../projectionselector/qgsprojectionselector.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/widgets/projectionselector/qgsprojectionselector.cpp b/src/widgets/projectionselector/qgsprojectionselector.cpp index ef0b232821c..eaa2be67379 100644 --- a/src/widgets/projectionselector/qgsprojectionselector.cpp +++ b/src/widgets/projectionselector/qgsprojectionselector.cpp @@ -292,6 +292,11 @@ QString QgsProjectionSelector::getCurrentProj4String() std::cout << " QgsProjectionSelector::getCurrentProj4String : users qgis.db not found" << std::endl; return NULL; } + else + { + QgsDebug(myDatabaseFileName); + QgsDebug("File not found"); + } } else //must be a system projection then { @@ -891,6 +896,8 @@ void QgsProjectionSelector::on_pbnFind_clicked() myFileInfo.setFile(myDatabaseFileName); if ( !myFileInfo.exists( ) ) //its not critical if this happens { + qDebug(myDatabaseFileName); + qDebug("User db does not exist"); return ; } myResult = sqlite3_open(myDatabaseFileName.toLocal8Bit().data(), &myDatabase); @@ -966,6 +973,11 @@ long QgsProjectionSelector::getLargestSRSIDMatch(QString theSql) } } } + else + { + QgsDebug(myDatabaseFileName); + QgsDebug("File not found"); + } //only bother looking in srs.db if it wasnt found above myResult = sqlite3_open(mSrsDatabaseFileName.toLocal8Bit().data(), &myDatabase);