From e9eb8c4a421c2c406e1ada4c866b2ae9268d647d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 9 Oct 2015 17:10:30 +0200 Subject: [pwgui] Also use the grayed out fake background --- src/maingui/printergui.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/maingui/printergui.cpp') diff --git a/src/maingui/printergui.cpp b/src/maingui/printergui.cpp index 21e03f4..0dd9e13 100644 --- a/src/maingui/printergui.cpp +++ b/src/maingui/printergui.cpp @@ -112,7 +112,15 @@ void PrinterGui::initializeUI() QRect desktopRect = QApplication::desktop()->screenGeometry(this); this->move( desktopRect.width()/2-this->width()/2, desktopRect.height()/2-this->height()/2); - this->setWindowTitle(QString::fromUtf8("Drucken - %1").arg(this->user)); + const char *docName; + docName = getenv("J"); + if (docName == NULL) { + docName = getenv("N"); + } + if (docName == NULL) { + docName = "Untitled"; + } + this->setWindowTitle(QString::fromUtf8("Drucken - %1 [%2]").arg(this->user, QString::fromUtf8(docName))); this->show(); this->showNormal(); -- cgit v1.2.3-55-g7522