File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -10065,11 +10065,15 @@ void QgisApp::projectChanged( const QDomDocument &doc )
10065
10065
10066
10066
QString expr;
10067
10067
if ( !prevProjectDir.isNull () )
10068
- expr = QString ( " sys.path.remove('%1'); " ).arg ( prevProjectDir );
10068
+ {
10069
+ QString prev = prevProjectDir;
10070
+ expr = QString ( " sys.path.remove('%1'); " ).arg ( prev.replace ( " '" , " \\ '" ) );
10071
+ }
10069
10072
10070
10073
prevProjectDir = fi.canonicalPath ();
10071
10074
10072
- expr += QString ( " sys.path.append('%1')" ).arg ( prevProjectDir );
10075
+ QString prev = prevProjectDir;
10076
+ expr += QString ( " sys.path.append('%1')" ).arg ( prev.replace ( " '" , " \\ '" ) );
10073
10077
10074
10078
QgsPythonRunner::run ( expr );
10075
10079
}
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ Q_DECLARE_METATYPE( QgsField );
163
163
*
164
164
* In addition to storing a list of QgsField instances, it also:
165
165
* - allows quick lookups of field names to index in the list
166
- *- keeps track of where the field definition comes from (vector data provider, joined layer or newly added from an editing operation)
166
+ * - keeps track of where the field definition comes from (vector data provider, joined layer or newly added from an editing operation)
167
167
* \note QgsFields objects are implicitly shared.
168
168
*/
169
169
class CORE_EXPORT QgsFields
You can’t perform that action at this time.
0 commit comments