fix: image temp path

This commit is contained in:
YiFang Xiao 2023-12-06 11:16:35 +08:00
parent 9c5e25971b
commit d15cafed49

View file

@ -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 );