mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
Use toLocal8Bit instead of toUtf8
It's the most "proper" way to do it, i guess in real world scenarios it doesn't really matter though
This commit is contained in:
parent
c559268987
commit
991eb0ed31
2
part.cpp
2
part.cpp
|
@ -2766,7 +2766,7 @@ bool Part::saveAs( const QUrl & saveUrl, SaveAsFlags flags )
|
|||
const mode_t mask = umask( 0 );
|
||||
umask( mask );
|
||||
const mode_t fileMode = 0666 & ~mask;
|
||||
chmod( saveFilePath.toUtf8().constData(), fileMode );
|
||||
chmod( saveFilePath.toLocal8Bit().constData(), fileMode );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue