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 19:00:36 +0100 |
commit | ec048f15ce8013c3b1c6a37624825187dc3c0b40 (patch) | |
tree | 12f979330ff855dd9d64a190cdad88468d95acb5 | |
parent | 559569122466078dcc29280e02bc53ef37620269 (diff) | |
download | tqtinterface-ec048f15ce8013c3b1c6a37624825187dc3c0b40.tar.gz tqtinterface-ec048f15ce8013c3b1c6a37624825187dc3c0b40.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-x | qtinterface/uic-tqt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/qtinterface/uic-tqt b/qtinterface/uic-tqt index b355ade..dbe4697 100755 --- a/qtinterface/uic-tqt +++ b/qtinterface/uic-tqt @@ -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 "$@" - cp -Rp $uifile.bkp $uifile - rm -f $uifile.bkp + if [[ "$uifile" != "" ]]; then + cp -Rp $uifile.bkp $uifile + rm -f $uifile.bkp + fi fi |