Skip to content

Commit

Permalink
escape backslashes as well
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav authored and m-kuhn committed Aug 10, 2019
1 parent c52e765 commit 5660e30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
Expand Up @@ -113,6 +113,7 @@ QVariant QgsValueRelationWidgetWrapper::value() const
break;
default:
QString newS = s;
newS.replace( '\\', QStringLiteral( "\\\\" ) );
newS.replace( '\"', QStringLiteral( "\\\"" ) );
sl.push_back( "\"" + newS + "\"" );
break;
Expand Down

0 comments on commit 5660e30

Please sign in to comment.