summaryrefslogtreecommitdiff
path: root/src/share
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2011-01-24 18:14:30 +0100
committercon <qtc-committer@nokia.com>2011-02-18 17:15:39 +0100
commitb21ca68c3c7b5a2fd03583a0d28b91160cd8c207 (patch)
treeee848470a65d2056b47de64139fb3caf94db0ce7 /src/share
parent4334309ea44ccf1ad8fe1d9d771cb1ff511c6dbe (diff)
downloadqt-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.xml8
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 &quot;System Events&quot; 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(&quot;Terminal&quot;)
- set editorScript to "vi \"%{CurrentDocument:FilePath}\" +%{CurrentDocument:Row} +\"normal %{CurrentDocument:Column}|\"; exit"
- tell application "Terminal"
+ set editorScript to &quot;vi \&quot;%{CurrentDocument:FilePath}\&quot; +%{CurrentDocument:Row} +\&quot;normal %{CurrentDocument:Column}|\&quot;; exit&quot;
+ tell application &quot;Terminal&quot;
--do script will open a new window if none given, but terminal already opens one if not running
if terminalWasRunning then
do script editorScript