Skip to content

Commit

Permalink
Merge pull request #1310 from xiaoyifang/fix/temp-path-image
Browse files Browse the repository at this point in the history
fix: image temp path
  • Loading branch information
xiaoyifang authored Dec 6, 2023
2 parents 9c5e259 + d15cafe commit 5f696f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ui/articleview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 5f696f4

Please sign in to comment.