From 4f415c56e5ea7f991c744bf4e2e132eb56f2314c Mon Sep 17 00:00:00 2001 From: Luigi Pirelli Date: Tue, 20 Mar 2018 18:00:36 +0100 Subject: [PATCH] typo --- python/plugins/db_manager/db_plugins/postgis/connector.py | 2 +- src/providers/postgres/qgspostgresconn.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/plugins/db_manager/db_plugins/postgis/connector.py b/python/plugins/db_manager/db_plugins/postgis/connector.py index 8c99058fa5ee..0db87e7b103e 100644 --- a/python/plugins/db_manager/db_plugins/postgis/connector.py +++ b/python/plugins/db_manager/db_plugins/postgis/connector.py @@ -66,7 +66,7 @@ def __init__(self, uri): try: self.connection = psycopg2.connect(expandedConnInfo) except self.connection_error_types() as e: - # get credentials if cached or assking to the user no more than 3 times + # get credentials if cached or asking to the user no more than 3 times err = unicode(e) uri = self.uri() conninfo = uri.connectionInfo(False) diff --git a/src/providers/postgres/qgspostgresconn.cpp b/src/providers/postgres/qgspostgresconn.cpp index a2b45a3a5466..8a9d56b97878 100644 --- a/src/providers/postgres/qgspostgresconn.cpp +++ b/src/providers/postgres/qgspostgresconn.cpp @@ -244,8 +244,8 @@ QgsPostgresConn::QgsPostgresConn( const QString &conninfo, bool readOnly, bool s fileName.remove( QStringLiteral( "'" ) ); QFile file( fileName ); // set minimal permission to allow removing on Win. - // On linux and Mac if file is set with QFile::>ReadUser - // does not create problem removin certs + // On linux and Mac if file is set with QFile::ReadUser + // does not create problem removing certs if ( !file.setPermissions( QFile::WriteOwner ) ) { QString errorMsg = tr( "Cannot set WriteOwner permission to cert: %0 to allow removing it" ).arg( file.fileName() );