Mercurial > hg > easyhg
changeset 212:4c5993d860f3
* OS/X: platform-specific binaries
author | Chris Cannam |
---|---|
date | Wed, 05 Jan 2011 15:55:36 +0000 |
parents | 290a95b5ceae |
children | 90e70a9024f3 27bfdc28541e |
files | mainwindow.cpp |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mainwindow.cpp Wed Jan 05 15:05:45 2011 +0000 +++ b/mainwindow.cpp Wed Jan 05 15:55:36 2011 +0000 @@ -505,7 +505,10 @@ QString diff = settings.value("extdiffbinary", "").toString(); if (diff == "") { QStringList bases; - bases << "easyhg-extdiff-osx.sh" << "kompare" << "kdiff3" << "meld"; +#ifdef Q_OS_MAC + bases << "easyhg-extdiff-osx.sh"; +#endif + bases << "kompare" << "kdiff3" << "meld"; bool found = false; foreach (QString base, bases) { diff = findInPath(base, m_myDirPath, true); @@ -533,7 +536,10 @@ } QString merge; QStringList bases; - bases << "fmdiff3" << "meld" << "diffuse" << "kdiff3"; +#ifdef Q_OS_MAC + bases << "easyhg-merge-osx.sh"; +#endif + bases << "meld" << "diffuse" << "kdiff3"; bool found = false; foreach (QString base, bases) { merge = findInPath(base, m_myDirPath, true); @@ -563,7 +569,7 @@ << "C:\\Program Files\\Windows NT\\Accessories\\wordpad.exe" << "notepad.exe" #elif defined Q_OS_MAC - << "textedit" + << "/Applications/TextEdit.app/Contents/MacOS/TextEdit" #else << "gedit" << "kate" #endif