summaryrefslogtreecommitdiffstats
path: root/qtinterface/uic-tqt.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/uic-tqt.cmake')
-rwxr-xr-xqtinterface/uic-tqt.cmake12
1 files changed, 8 insertions, 4 deletions
diff --git a/qtinterface/uic-tqt.cmake b/qtinterface/uic-tqt.cmake
index 51b6626..bcf2c58 100755
--- a/qtinterface/uic-tqt.cmake
+++ b/qtinterface/uic-tqt.cmake
@@ -10,9 +10,13 @@ else
fi
done
- cp -Rp $uifile $uifile.bkp
- tqt-replace $uifile
+ if [[ "$uifile" != "" ]]; then
+ cp -Rp $uifile $uifile.bkp
+ tqt-replace $uifile
+ fi
@UIC_EXECUTABLE@ "$@"
- cp -Rp $uifile.bkp $uifile
- rm -f $uifile.bkp
+ if [[ "$uifile" != "" ]]; then
+ cp -Rp $uifile.bkp $uifile
+ rm -f $uifile.bkp
+ fi
fi