Commit 2f7b3e12 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Fix overwriting of new license header template.

parent 696cfa04
......@@ -264,7 +264,7 @@ void CppFileSettingsWidget::slotEdit()
if (path.isEmpty())
QFile file(path);
if (!|QIODevice::Text)) {
if (!|QIODevice::Text|QIODevice::Truncate)) {
QMessageBox::warning(this, tr("Template write error"),
tr("Cannot write to %1: %2").arg(path, file.errorString()));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment