summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-03-24 18:56:24 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-03-24 18:56:36 +0100
commitf4384c8e7ec355ede97dfe38efe9730fae47d2cb (patch)
tree87ec746e3dc6f5de224d7ca45025d1b70bf265be
parent4af346b182763279248b6c6d580e2e3443d78b08 (diff)
downloadtqtinterface-f4384c8e7ec355ede97dfe38efe9730fae47d2cb.tar.gz
tqtinterface-f4384c8e7ec355ede97dfe38efe9730fae47d2cb.zip
Fix usage uic-tqt without an '.ui' file in arguments
This resolves issues with mode 'embed' Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit be944e140b0ae077854cbe3bb90c9f122bb6623b)
-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