File tree Expand file tree Collapse file tree 6 files changed +16
-12
lines changed Expand file tree Collapse file tree 6 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ android {
17
17
INSTALLS +=target
18
18
19
19
# Find out git hash
20
- unix :system (which git ):HAS_GIT =TRUE
21
- win32 :system (where git.exe ):HAS_GIT =TRUE
22
- contains (HAS_GIT, TRUE ) {
23
- GIT_HASH =$$system (git log -1 --format =%H )
24
- !system (git diff-index --quiet HEAD ): GIT_HASH =" $$GIT_HASH-dirty"
25
- GIT_VERSION =$$system (git describe --tags --exact-match )
26
- isEmpty (GIT_VERSION ) : GIT_VERSION =" unknown"
20
+ exists (.git ) {
21
+ unix :system (which git ):HAS_GIT =TRUE
22
+ win32 :system (where git.exe ):HAS_GIT =TRUE
23
+ contains (HAS_GIT, TRUE ) {
24
+ GIT_HASH =$$system (git log -1 --format =%H )
25
+ !system (git diff-index --quiet HEAD ): GIT_HASH =" $$GIT_HASH-dirty"
26
+ GIT_VERSION =$$system (git describe --tags --exact-match )
27
+ isEmpty (GIT_VERSION ) : GIT_VERSION =" unknown"
28
+ }
27
29
} else {
28
30
GIT_HASH =" unknown"
29
31
GIT_VERSION =" unknown"
Original file line number Diff line number Diff line change 1
1
/* ***************************************************************************
2
2
**
3
- ** Copyright (C) 2013 Digia Plc
3
+ ** Copyright (C) 2014 Digia Plc
4
4
** All rights reserved.
5
5
** For any questions to Digia, please use contact form at http://qt.digia.com
6
6
**
@@ -187,6 +187,7 @@ static bool removeDefault()
187
187
fprintf (stderr, " Could not remove default application.\n " );
188
188
return false ;
189
189
}
190
+ sync ();
190
191
}
191
192
return true ;
192
193
}
@@ -207,6 +208,7 @@ static bool makeDefault(const QString &filepath)
207
208
fprintf (stderr, " Could not link default application.\n " );
208
209
return false ;
209
210
}
211
+ sync ();
210
212
return true ;
211
213
}
212
214
Original file line number Diff line number Diff line change 1
1
/* ***************************************************************************
2
2
**
3
- ** Copyright (C) 2013 Digia Plc
3
+ ** Copyright (C) 2014 Digia Plc
4
4
** All rights reserved.
5
5
** For any questions to Digia, please use contact form at http://qt.digia.com
6
6
**
Original file line number Diff line number Diff line change 1
1
/* ***************************************************************************
2
2
**
3
- ** Copyright (C) 2013 Digia Plc
3
+ ** Copyright (C) 2014 Digia Plc
4
4
** All rights reserved.
5
5
** For any questions to Digia, please use contact form at http://qt.digia.com
6
6
**
Original file line number Diff line number Diff line change 1
1
/* ***************************************************************************
2
2
**
3
- ** Copyright (C) 2013 Digia Plc
3
+ ** Copyright (C) 2014 Digia Plc
4
4
** All rights reserved.
5
5
** For any questions to Digia, please use contact form at http://qt.digia.com
6
6
**
Original file line number Diff line number Diff line change 1
1
/* ***************************************************************************
2
2
**
3
- ** Copyright (C) 2013 Digia Plc
3
+ ** Copyright (C) 2014 Digia Plc
4
4
** All rights reserved.
5
5
** For any questions to Digia, please use contact form at http://qt.digia.com
6
6
**
You can’t perform that action at this time.
0 commit comments