Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
16081c10
Commit
16081c10
authored
Jun 15, 2010
by
Oswald Buddenhagen
Browse files
use local8Bit instead of latin1 here as well
parent
82b72b08
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt4nodes.cpp
View file @
16081c10
...
...
@@ -728,7 +728,7 @@ void Qt4PriFileNode::changeFiles(const FileType fileType,
{
QFile
qfile
(
m_projectFilePath
);
if
(
qfile
.
open
(
QIODevice
::
ReadOnly
|
QIODevice
::
Text
))
{
contents
=
QString
::
fromL
atin1
(
qfile
.
readAll
());
// yes, really latin1
contents
=
QString
::
fromL
ocal8Bit
(
qfile
.
readAll
());
qfile
.
close
();
lines
=
contents
.
split
(
QLatin1Char
(
'\n'
));
while
(
!
lines
.
isEmpty
()
&&
lines
.
last
().
isEmpty
())
...
...
@@ -779,7 +779,7 @@ void Qt4PriFileNode::save(const QStringList &lines)
QFile
qfile
(
m_projectFilePath
);
if
(
qfile
.
open
(
QIODevice
::
WriteOnly
|
QIODevice
::
Text
))
{
foreach
(
const
QString
&
str
,
lines
)
{
qfile
.
write
(
str
.
toL
atin1
());
// yes, really latin1
qfile
.
write
(
str
.
toL
ocal8Bit
());
qfile
.
write
(
"
\n
"
);
}
qfile
.
close
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment