diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-03-24 18:56:24 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-03-24 18:56:24 +0100 |
commit | be944e140b0ae077854cbe3bb90c9f122bb6623b (patch) | |
tree | 4684f3d8d1ec9eed8374707f330e45bfa1a739b2 /qtinterface | |
parent | cfb4b8d74d34db89bdf20c18bc592fe14ff84660 (diff) | |
download | tqtinterface-be944e140b0ae077854cbe3bb90c9f122bb6623b.tar.gz tqtinterface-be944e140b0ae077854cbe3bb90c9f122bb6623b.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>
Diffstat (limited to 'qtinterface')
-rwxr-xr-x | qtinterface/uic-tqt.cmake | 12 |
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 |