Fix a bug in image clipboard.

This commit is contained in:
Black Hat
2019-05-22 12:28:43 +08:00
parent 1796f15b16
commit dffd769afc

View File

@@ -29,7 +29,7 @@ bool ImageClipboard::saveImage(const QUrl& localPath) {
if (i.isNull())
return false;
QString path = QFileInfo(localPath.toString()).absolutePath();
QString path = QFileInfo(localPath.toLocalFile()).absolutePath();
QDir dir;
if (!dir.exists(path))
dir.mkpath(path);