Skip to content

Commit 86876a6

Browse files
committed
extended title for testing
1 parent c9b3322 commit 86876a6

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
@@ -4286,7 +4286,7 @@ void PDFDocument::setCurrentFile(const QString &fileName)
42864286
curFileUnnormalized = fileName;
42874287
curFile = QFileInfo(fileName).canonicalFilePath();
42884288
QString niceFile = QFileInfo(curFile).fileName();
4289-
setWindowTitle(tr("%1[*] - %2").arg(niceFile,tr(TEXSTUDIO)));
4289+
setWindowTitle(tr("%1[*] - %2 [_txsXP] %3").arg(niceFile,tr(TEXSTUDIO),TEXSTUDIO_GIT_REVISION ? TEXSTUDIO_GIT_REVISION : "n/a"));
42904290
}
42914291

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

src/texstudio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@ void Texstudio::updateCaption()
18761876
updateOpenDocumentMenu(true);
18771877
newDocumentLineEnding();
18781878
}
1879-
setWindowTitle(title);
1879+
setWindowTitle(title + QString(" [_txsXP] %1").arg(TEXSTUDIO_GIT_REVISION ? TEXSTUDIO_GIT_REVISION : "n/a"));
18801880
updateUndoRedoStatus();
18811881
cursorPositionChanged();
18821882
if (documents.singleMode()) {

0 commit comments

Comments
 (0)