Mercurial > hg > easyhg
comparison src/mainwindow.cpp @ 637:a1b4108da48c
* Prefix working folder path on MacOS
author | Sam Izzo <sam@humbug.net> |
---|---|
date | Wed, 29 Aug 2012 12:41:18 +1000 |
parents | 6e479f33ea93 |
children | 436a97afe732 |
comparison
equal
deleted
inserted
replaced
636:046ad99a4230 | 637:a1b4108da48c |
---|---|
875 file = file.replace('/', '\\'); | 875 file = file.replace('/', '\\'); |
876 args << "/select," << file; | 876 args << "/select," << file; |
877 // FIXME: This shouldn't be using a hardcoded path. | 877 // FIXME: This shouldn't be using a hardcoded path. |
878 QProcess::execute("c:/windows/explorer.exe", args); | 878 QProcess::execute("c:/windows/explorer.exe", args); |
879 #else if defined(Q_OS_MAC) | 879 #else if defined(Q_OS_MAC) |
880 args << file; | 880 file = m_workFolderPath + "/" + file; |
881 args << "--reveal" << file; | |
881 QProcess::execute("/usr/bin/open", args); | 882 QProcess::execute("/usr/bin/open", args); |
882 #endif | 883 #endif |
883 } | 884 } |
884 } | 885 } |
885 | 886 |