Commit adb5a7a7 authored by David Schulz's avatar David Schulz

Editor: Set correct title to the print job.

Fix proposed by Alex Sokolov.

Task-number: QTCREATORBUG-12161
Change-Id: I1a7d4e9579dbb518970ea7bdb76a740e8e5d870d
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 77ec2c6c
......@@ -346,7 +346,7 @@ void BaseTextEditorWidgetPrivate::print(QPrinter *printer)
QTextDocument *doc = q->document();
QString title = m_document->displayName();
if (title.isEmpty())
if (!title.isEmpty())
printer->setDocName(title);
......
Markdown is supported
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