Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
d968f04b
Commit
d968f04b
authored
Mar 18, 2014
by
Mark Morschhäuser
Browse files
Improved file handling from commit
e33debcb
.
parent
da59b51c
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/main.cpp
View file @
d968f04b
...
@@ -58,9 +58,9 @@ QString translationPath = QString();
...
@@ -58,9 +58,9 @@ QString translationPath = QString();
void
myMessageOutput
(
QtMsgType
/*type*/
,
const
char
*
msg
)
void
myMessageOutput
(
QtMsgType
/*type*/
,
const
char
*
msg
)
{
{
QFile
file
(
"qdebug.txt"
);
QFile
file
(
"qdebug.txt"
);
file
.
open
(
QIODevice
::
WriteOnly
|
QIODevice
::
Text
);
file
.
open
(
QIODevice
::
WriteOnly
|
QIODevice
::
Truncate
|
QIODevice
::
Text
);
QTextStream
out
(
&
file
);
QTextStream
out
(
&
file
);
out
<<
msg
<<
"
\n
"
;
out
<<
msg
<<
endl
;
file
.
close
();
file
.
close
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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