r24490 by jghali - Fix incorrect application title in case SVN revision is not defined

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 15 21:01:57 UTC 2021


Author: jghali
Date: Mon Feb 15 21:01:57 2021
New Revision: 24490

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24490
Log:
Fix incorrect application title in case SVN revision is not defined

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24490&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp	(original)
+++ trunk/Scribus/scribus/scribus.cpp	Mon Feb 15 21:01:57 2021
@@ -335,7 +335,7 @@
 	m_doc->setGUI(false, this, nullptr);
 	CurrStED = nullptr;
 	QString scribusTitle(ScribusAPI::getVersionScribusTranslated());
-	if (ScribusAPI::isSVN())
+	if (ScribusAPI::isSVN() && ScribusAPI::haveSVNRevision())
 		scribusTitle.append(QString(" (r%1)").arg(ScribusAPI::getSVNRevision()));
 	setWindowTitle(scribusTitle);
 	setAttribute(Qt::WA_KeyCompression, false);




More information about the scribus-commit mailing list