Skip to content
GitLab
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
2f7b3e12
Commit
2f7b3e12
authored
Jun 22, 2009
by
Friedemann Kleint
Browse files
Fix overwriting of new license header template.
parent
696cfa04
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppfilesettingspage.cpp
View file @
2f7b3e12
...
...
@@ -264,7 +264,7 @@ void CppFileSettingsWidget::slotEdit()
if
(
path
.
isEmpty
())
return
;
QFile
file
(
path
);
if
(
!
file
.
open
(
QIODevice
::
ReadWrite
|
QIODevice
::
Text
))
{
if
(
!
file
.
open
(
QIODevice
::
ReadWrite
|
QIODevice
::
Text
|
QIODevice
::
Truncate
))
{
QMessageBox
::
warning
(
this
,
tr
(
"Template write error"
),
tr
(
"Cannot write to %1: %2"
).
arg
(
path
,
file
.
errorString
()));
return
;
...
...
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