forked from qt-creator/qt-creator
Editor: Set correct title to the print job.
Fix proposed by Alex Sokolov. Task-number: QTCREATORBUG-12161 Change-Id: I1a7d4e9579dbb518970ea7bdb76a740e8e5d870d Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user