Skip to content

Commit 1225e3b

Browse files
committed
extended title for testing
1 parent 6a08c29 commit 1225e3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pdfviewer/PDFDocument.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4281,7 +4281,7 @@ void PDFDocument::setCurrentFile(const QString &fileName)
42814281
curFileUnnormalized = fileName;
42824282
curFile = QFileInfo(fileName).canonicalFilePath();
42834283
QString niceFile = QFileInfo(curFile).fileName();
4284-
setWindowTitle(tr("%1[*] - %2").arg(niceFile,tr(TEXSTUDIO)));
4284+
setWindowTitle(tr("%1[*] - %2 [_txsXP] %3").arg(niceFile,tr(TEXSTUDIO),TEXSTUDIO_GIT_REVISION ? TEXSTUDIO_GIT_REVISION : "n/a"));
42854285
}
42864286

42874287
PDFDocument *PDFDocument::findDocument(const QString &fileName)

src/texstudio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,7 @@ void Texstudio::updateCaption()
18411841
updateOpenDocumentMenu(true);
18421842
newDocumentLineEnding();
18431843
}
1844-
setWindowTitle(title);
1844+
setWindowTitle(title + QString(" [_txsXP] %1").arg(TEXSTUDIO_GIT_REVISION ? TEXSTUDIO_GIT_REVISION : "n/a"));
18451845
updateUndoRedoStatus();
18461846
cursorPositionChanged();
18471847
if (documents.singleMode()) {

0 commit comments

Comments
 (0)