From d15cafed49927db5298a333959049c0d85984442 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Wed, 6 Dec 2023 11:16:35 +0800 Subject: [PATCH] fix: image temp path --- src/ui/articleview.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/articleview.cc b/src/ui/articleview.cc index b160610d..628cb24a 100644 --- a/src/ui/articleview.cc +++ b/src/ui/articleview.cc @@ -1767,8 +1767,7 @@ void ArticleView::contextMenuRequested( QPoint const & pos ) if ( name.length() && name[ name.length() - 1 ] == '\x1F' ) name.chop( 1 ); - fileName = QString::number( QRandomGenerator::global()->generate() ) + name; - + fileName = QDir::temp().filePath( QString::number( QRandomGenerator::global()->generate() ) + name ); if ( !fileName.isEmpty() ) { QFileInfo fileInfo( fileName );