Fix a bug in image clipboard.
This commit is contained in:
@@ -29,7 +29,7 @@ bool ImageClipboard::saveImage(const QUrl& localPath) {
|
|||||||
if (i.isNull())
|
if (i.isNull())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
QString path = QFileInfo(localPath.toString()).absolutePath();
|
QString path = QFileInfo(localPath.toLocalFile()).absolutePath();
|
||||||
QDir dir;
|
QDir dir;
|
||||||
if (!dir.exists(path))
|
if (!dir.exists(path))
|
||||||
dir.mkpath(path);
|
dir.mkpath(path);
|
||||||
|
|||||||
Reference in New Issue
Block a user