diff main.cpp @ 172:b6dd1ee0e486

* Fix failure to recognise local uncommitted changes when an untracked file was selected * Win32: Look in installed location (currently just the location of the present .exe) for executables as well as in path * Win32: Search for easyhg extension in same way as executables * Win32: Set installed location to path when running hg commands (for dependent DLLs)
author Chris Cannam
date Wed, 15 Dec 2010 22:07:31 +0000
parents edab92f3ea0b
children 8fd71f570884
line wrap: on
line diff
--- a/main.cpp	Tue Dec 14 21:16:52 2010 +0000
+++ b/main.cpp	Wed Dec 15 22:07:31 2010 +0000
@@ -44,7 +44,11 @@
     app.installTranslator(&translator);
 
     QStringList args = app.arguments();
-    MainWindow mainWin;
+
+    QString myDirPath = QFileInfo(QDir::current().absoluteFilePath(args[0]))
+        .canonicalPath();
+
+    MainWindow mainWin(myDirPath);
     mainWin.show();
 
     if (args.size() == 2) {