Mercurial > hg > easyhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
171:aab308a3b304 | 172:b6dd1ee0e486 |
---|---|
42 QString trname = QString("easyhg_%1").arg(language); | 42 QString trname = QString("easyhg_%1").arg(language); |
43 translator.load(trname, ":"); | 43 translator.load(trname, ":"); |
44 app.installTranslator(&translator); | 44 app.installTranslator(&translator); |
45 | 45 |
46 QStringList args = app.arguments(); | 46 QStringList args = app.arguments(); |
47 MainWindow mainWin; | 47 |
48 QString myDirPath = QFileInfo(QDir::current().absoluteFilePath(args[0])) | |
49 .canonicalPath(); | |
50 | |
51 MainWindow mainWin(myDirPath); | |
48 mainWin.show(); | 52 mainWin.show(); |
49 | 53 |
50 if (args.size() == 2) { | 54 if (args.size() == 2) { |
51 QString path = args[1]; | 55 QString path = args[1]; |
52 DEBUG << "Opening " << args[1] << endl; | 56 DEBUG << "Opening " << args[1] << endl; |