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
remotes/origin/Applications/18.04
Albert Astals Cid 8 years ago
parent c559268987
commit 991eb0ed31
  1. 2
      part.cpp

@ -2766,7 +2766,7 @@ bool Part::saveAs( const QUrl & saveUrl, SaveAsFlags flags )
const mode_t mask = umask( 0 ); const mode_t mask = umask( 0 );
umask( mask ); umask( mask );
const mode_t fileMode = 0666 & ~mask; const mode_t fileMode = 0666 & ~mask;
chmod( saveFilePath.toUtf8().constData(), fileMode ); chmod( saveFilePath.toLocal8Bit().constData(), fileMode );
} }
#endif #endif

Loading…
Cancel
Save