Skip to content

Commit

Permalink
extended title for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
octaeder committed Dec 30, 2023
1 parent 0eac50f commit 7894cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pdfviewer/PDFDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4281,7 +4281,7 @@ void PDFDocument::setCurrentFile(const QString &fileName)
curFileUnnormalized = fileName;
curFile = QFileInfo(fileName).canonicalFilePath();
QString niceFile = QFileInfo(curFile).fileName();
setWindowTitle(tr("%1[*] - %2").arg(niceFile,tr(TEXSTUDIO)));
setWindowTitle(tr("%1[*] - %2 [_txsXP] %3").arg(niceFile,tr(TEXSTUDIO),TEXSTUDIO_GIT_REVISION ? TEXSTUDIO_GIT_REVISION : "n/a"));
}

PDFDocument *PDFDocument::findDocument(const QString &fileName)
Expand Down
2 changes: 1 addition & 1 deletion src/texstudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,7 @@ void Texstudio::updateCaption()
updateOpenDocumentMenu(true);
newDocumentLineEnding();
}
setWindowTitle(title);
setWindowTitle(title + QString(" [_txsXP] %1").arg(TEXSTUDIO_GIT_REVISION ? TEXSTUDIO_GIT_REVISION : "n/a"));
updateUndoRedoStatus();
cursorPositionChanged();
if (documents.singleMode()) {
Expand Down

0 comments on commit 7894cab

Please sign in to comment.