Skip to content

Commit 7f0b006

Browse files
committed
qtvcp -change the logic of window title setting
folow this override order: qtvcp default handlerfile option INI option
1 parent fceb9ca commit 7f0b006

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/emc/usr_intf/qtvcp/qtvcp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,7 @@ def __init__(self):
295295

296296
# title
297297
if INIPATH:
298-
if (INITITLE == ""):
299-
INITITLE='QTvcp-Screen-%s'% opts.component
300-
title = INITITLE
298+
title ='QTvcp-Screen-%s'% opts.component
301299
else:
302300
title = 'QTvcp-Panel-%s'% opts.component
303301
window.setWindowTitle(title)
@@ -407,6 +405,8 @@ def __init__(self):
407405
# if there is a valid INI based icon path, override the default icon.
408406
if INIICON !='' and os.path.exists(os.path.join(PATH.CONFIGPATH, INIICON)):
409407
window.setWindowIcon(QtGui.QIcon(os.path.join(PATH.CONFIGPATH, INIICON)))
408+
if (INITITLE !=''):
409+
window.setWindowTitle(INITITLE)
410410

411411
# catch control c and terminate signals
412412
signal.signal(signal.SIGTERM, self.shutdown)

0 commit comments

Comments
 (0)