mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
fix: image temp path
This commit is contained in:
parent
9c5e25971b
commit
d15cafed49
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue