summaryrefslogtreecommitdiff
path: root/qt-recordmydesktop/src/rmdTrayIcon.py
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-06-18 16:37:23 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-06-18 16:37:23 +0000
commit55659477f23a37170d7823ac17b7aed0f5e641c6 (patch)
treeae726f7b76366cbf5d40980b0e4047d28cf2a4fc /qt-recordmydesktop/src/rmdTrayIcon.py
parentfbc2e259710978e4c383b3dc7c9915f267884012 (diff)
rmdMonitor.py: Inherits QDialog now, removed some unneeded show()
calls, added wait for child proccess, removed frame and window members (window not needed as self is now the main widget, frame also unneeded since main widget is no longer a QMainWindow and can get the layout directly).Also closeEvent() is now directly reimplemented. rmdTrayIcon.py:Added exec_ call for rmdMonitor, state now doesn't change before encoding ends. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@360 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'qt-recordmydesktop/src/rmdTrayIcon.py')
-rw-r--r--qt-recordmydesktop/src/rmdTrayIcon.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-recordmydesktop/src/rmdTrayIcon.py b/qt-recordmydesktop/src/rmdTrayIcon.py
index 1d657b6..57a7ca7 100644
--- a/qt-recordmydesktop/src/rmdTrayIcon.py
+++ b/qt-recordmydesktop/src/rmdTrayIcon.py
@@ -72,6 +72,7 @@ class trayIcon(object):
def __buttonPress__(self,ActivationReason):
+
button=0
if ActivationReason==QtGui.QSystemTrayIcon.Trigger:
button=1
@@ -249,6 +250,8 @@ class trayIcon(object):
os.kill(self.rmdPid,signal.SIGTERM)
self.state=-1
monitor=imon.rmdMonitor(self.childP.fromchild,self.rmdPid,self.parent)
+ monitor.exec_()
+
self.state=0
else:
self.__exit_status_dialog(exit_ret[1])
© All Rights Reserved