Skip to content
Permalink
Browse files

Escape backslash for mime data. Fix MS SQL drag and drop

  • Loading branch information
NathanW2 committed Oct 11, 2014
1 parent 67c9a72 commit 7813f6b094b6d31e087f43b25d50b8e59030e6a0
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/qgsmimedatautils.cpp
@@ -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;
}

0 comments on commit 7813f6b

Please sign in to comment.
You can’t perform that action at this time.