diff options
author | con <qtc-committer@nokia.com> | 2011-01-24 18:14:30 +0100 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2011-02-18 17:15:39 +0100 |
commit | b21ca68c3c7b5a2fd03583a0d28b91160cd8c207 (patch) | |
tree | ee848470a65d2056b47de64139fb3caf94db0ce7 /src/share | |
parent | 4334309ea44ccf1ad8fe1d9d771cb1ff511c6dbe (diff) | |
download | qt-creator-b21ca68c3c7b5a2fd03583a0d28b91160cd8c207.tar.gz |
Save modified external tools in user resource location.
Diffstat (limited to 'src/share')
-rw-r--r-- | src/share/qtcreator/externaltools/vi_mac.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/share/qtcreator/externaltools/vi_mac.xml b/src/share/qtcreator/externaltools/vi_mac.xml index eca14163c4..e2f5fd6d17 100644 --- a/src/share/qtcreator/externaltools/vi_mac.xml +++ b/src/share/qtcreator/externaltools/vi_mac.xml @@ -41,13 +41,13 @@ <input> --Terminal opens a window by default when it is not running, so check on applicationIsRunning(applicationName) - tell application "System Events" to count (every process whose name is applicationName) + tell application "System Events" to count (every process whose name is applicationName) return result is greater than 0 end applicationIsRunning - set terminalWasRunning to applicationIsRunning("Terminal") + set terminalWasRunning to applicationIsRunning("Terminal") - set editorScript to "vi \"%{CurrentDocument:FilePath}\" +%{CurrentDocument:Row} +\"normal %{CurrentDocument:Column}|\"; exit" - tell application "Terminal" + set editorScript to "vi \"%{CurrentDocument:FilePath}\" +%{CurrentDocument:Row} +\"normal %{CurrentDocument:Column}|\"; exit" + tell application "Terminal" --do script will open a new window if none given, but terminal already opens one if not running if terminalWasRunning then do script editorScript |