From f4384c8e7ec355ede97dfe38efe9730fae47d2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 24 Mar 2016 18:56:24 +0100 Subject: Fix usage uic-tqt without an '.ui' file in arguments This resolves issues with mode 'embed' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit be944e140b0ae077854cbe3bb90c9f122bb6623b) --- qtinterface/uic-tqt.cmake | 12 ++++++++---- 1 file 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 -- cgit v1.2.1