Skip to content

Commit

Permalink
Escape backslash for mime data. Fix MS SQL drag and drop
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Oct 11, 2014
1 parent 67c9a72 commit 7813f6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsmimedatautils.cpp
Expand Up @@ -91,6 +91,7 @@ QString QgsMimeDataUtils::Uri::data() const
QString escapedName = name;
QString escapeUri = uri;
escapedName.replace( ":", "\\:" );
escapeUri.replace( "\\", "\\\\" );
escapeUri.replace( ":", "\\:" );
return layerType + ":" + providerKey + ":" + escapedName + ":" + escapeUri;
}
Expand Down

0 comments on commit 7813f6b

Please sign in to comment.