Use QUrl::fromUserInput.
This can properly cope with relative paths, something that the previous code did not as QUrl::fromLocalFile would always use the file scheme, and thus file:relative/path would be returned... This fixes --msg and --attach with relative paths for me when kmail was started ina different directory.
parent
99702008
Please register or sign in to comment