Fixed a bug in closing the app with the X button and selecting No on the question
This commit is contained in:
@@ -144,7 +144,6 @@ class GuiMainStatus(QStatusBar):
|
||||
##
|
||||
|
||||
def _updateTime(self):
|
||||
sTime = time()
|
||||
if self.refTime is None:
|
||||
theTime = "00:00:00"
|
||||
else:
|
||||
@@ -156,7 +155,6 @@ class GuiMainStatus(QStatusBar):
|
||||
tS = tS - tM*60 - tH*3600
|
||||
theTime = "%02d:%02d:%02d" % (tH,tM,tS)
|
||||
self.boxTime.setText(theTime)
|
||||
print((time()-sTime)*1e6)
|
||||
return
|
||||
|
||||
# END Class GuiMainStatus
|
||||
|
||||
+4
-1
@@ -548,7 +548,10 @@ class GuiMain(QMainWindow):
|
||||
return
|
||||
|
||||
def closeEvent(self, theEvent):
|
||||
self.closeMain()
|
||||
if self.closeMain():
|
||||
theEvent.accept()
|
||||
else:
|
||||
theEvent.ignore()
|
||||
return
|
||||
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user