File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ bool QgsCustomProjectionDialog::deleteCRS( QString id )
168
168
QgsDebugMsg ( QString ( " failed to remove CRS from database in custom projection dialog: %1 [%2]" ).arg ( mySql ).arg ( sqlite3_errmsg ( myDatabase ) ) );
169
169
}
170
170
sqlite3_close ( myDatabase );
171
+
172
+ QgsCRSCache::instance ()->updateCRSCache ( QString ( " USER:%1" ).arg ( id ) );
173
+
171
174
return myResult == SQLITE_OK;
172
175
}
173
176
Original file line number Diff line number Diff line change @@ -106,6 +106,11 @@ void QgsCRSCache::updateCRSCache( const QString& authid )
106
106
{
107
107
mCRS .insert ( authid, s );
108
108
}
109
+ else
110
+ {
111
+ mCRS .remove ( authid );
112
+ }
113
+
109
114
QgsCoordinateTransformCache::instance ()->invalidateCrs ( authid );
110
115
}
111
116
You can’t perform that action at this time.
0 commit comments