<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -105,15 +105,12 @@ BrowserApplication::BrowserApplication(int &amp;argc, char **argv)
 {
     QCoreApplication::setOrganizationDomain(QLatin1String(&quot;arora-browser.org&quot;));
     QCoreApplication::setApplicationName(QLatin1String(&quot;Arora&quot;));
-    QString version = QLatin1String(&quot;0.10.1&quot;);
-    QString gitVersion = QLatin1String(GITCHANGENUMBER);
-    if (gitVersion != QLatin1String(&quot;0&quot;)
-        &amp;&amp; !gitVersion.isEmpty())
-        version += QString(QLatin1String(&quot; (Git: %1 %2)&quot;))
-                    .arg(QLatin1String(GITCHANGENUMBER))
-                    .arg(QLatin1String(GITVERSION));
-
-    QCoreApplication::setApplicationVersion(version);
+    QCoreApplication::setApplicationVersion(QLatin1String(&quot;0.10.1&quot;
+#ifdef GITVERSION
+    &quot; (Git: &quot; GITCHANGENUMBER &quot; &quot; GITVERSION &quot;)&quot;
+#endif
+    ));
+
 #ifndef AUTOTESTS
     connect(this, SIGNAL(messageReceived(QLocalSocket *)),
             this, SLOT(messageReceived(QLocalSocket *)));</diff>
      <filename>src/browserapplication.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -15,19 +15,12 @@ UI_DIR      = $$PWD/.ui
 MOC_DIR     = $$PWD/.moc
 OBJECTS_DIR = $$PWD/.obj
 
-
-win32 {
-    DEFINES += GITVERSION=0
-    DEFINES += GITCHANGENUMBER=0
-} else {
-    exists($$PWD/../.git/HEAD) {
-        GITVERSION=$$system(git log -n1 --pretty=format:%h)
-        DEFINES += GITVERSION=\&quot;\\\&quot;$$GITVERSION\\\&quot;\&quot;
+exists(../.git/HEAD) {
+    GITVERSION=$$system(git log -n1 --pretty=format:%h)
+    !isEmpty(GITVERSION) {
         GITCHANGENUMBER=$$system(git log --pretty=format:%h | wc -l)
+        DEFINES += GITVERSION=\&quot;\\\&quot;$$GITVERSION\\\&quot;\&quot;
         DEFINES += GITCHANGENUMBER=\&quot;\\\&quot;$$GITCHANGENUMBER\\\&quot;\&quot;
-    } else {
-        DEFINES += GITVERSION=\&quot;\\\&quot;0\\\&quot;\&quot;
-        DEFINES += GITCHANGENUMBER=\&quot;\\\&quot;0\\\&quot;\&quot;
     }
 }
 </diff>
      <filename>src/src.pri</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d9b3bb98fdbf0cb279cdecf604ff87f163fc36a7</id>
    </parent>
  </parents>
  <author>
    <name>Christopher Eby</name>
    <email>kreed@kreed.org</email>
  </author>
  <url>http://github.com/icefox/arora/commit/e553195e165fb6def0a8381a44e760e3f94cb614</url>
  <id>e553195e165fb6def0a8381a44e760e3f94cb614</id>
  <committed-date>2009-10-15T19:10:46-07:00</committed-date>
  <authored-date>2009-10-10T13:58:32-07:00</authored-date>
  <message>Simplify setting of applicationVersion

This avoids compile errors when GITVERSION is undefined and does the
work at build-time rather than run-time.</message>
  <tree>07957788dcff4a1cbbad3044589a70dc95828535</tree>
  <committer>
    <name>Benjamin C Meyer</name>
    <email>ben@meyerhome.net</email>
  </committer>
</commit>
