QTfrontend/ui_hwform.cpp
changeset 8613 82c649dfc7c3
parent 8385 9e8924ff9813
child 8635 c1c6b815691e
--- a/QTfrontend/ui_hwform.cpp	Thu Feb 28 23:14:11 2013 +0100
+++ b/QTfrontend/ui_hwform.cpp	Fri Mar 01 00:06:05 2013 +0100
@@ -54,7 +54,10 @@
     HWForm->setObjectName(QString::fromUtf8("HWForm"));
     HWForm->resize(QSize(640, 480).expandedTo(HWForm->minimumSizeHint()));
     HWForm->setMinimumSize(QSize(720, 450));
-    HWForm->setWindowTitle(QMainWindow::tr("Hedgewars %1").arg(*cVersionString));
+    QString suffix = isDevBuild ?
+        QMainWindow::tr("-r%1 (%2)").arg(*cRevisionString, *cHashString) : QString("");
+    QString title = QMainWindow::tr("Hedgewars %1").arg(*cVersionString) + suffix;
+    HWForm->setWindowTitle(title);
     centralWidget = new QWidget(HWForm);
     centralWidget->setObjectName(QString::fromUtf8("centralWidget"));