summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/slave/slavereciever.cpp
Unidiff
Diffstat (limited to 'noncore/graphics/opie-eye/slave/slavereciever.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/slave/slavereciever.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/slave/slavereciever.cpp b/noncore/graphics/opie-eye/slave/slavereciever.cpp
index c8e33d4..bbbbb30 100644
--- a/noncore/graphics/opie-eye/slave/slavereciever.cpp
+++ b/noncore/graphics/opie-eye/slave/slavereciever.cpp
@@ -58,5 +58,5 @@ SlaveObjects* slaveObjects() {
58 58
59SlaveReciever::SlaveReciever( QObject* par) 59SlaveReciever::SlaveReciever( QObject* par)
60 : QObject( par ) 60 : QObject( par ), m_refs( 0 )
61{ 61{
62 m_inf = new QTimer(this); 62 m_inf = new QTimer(this);
@@ -121,4 +121,8 @@ void SlaveReciever::recieveAnswer( const QCString& string, const QByteArray& ar)
121 m_inPix.append(*it); 121 m_inPix.append(*it);
122 } 122 }
123 }else if ( string == "refUp()" ) {
124 m_refs++;
125 }else if ( string == "refDown()" ) {
126 m_refs--;
123 } 127 }
124 128
@@ -129,5 +133,8 @@ void SlaveReciever::recieveAnswer( const QCString& string, const QByteArray& ar)
129 m_pix->start(5); 133 m_pix->start(5);
130 134
135 if ( m_refs )
131 QPEApplication::setKeepRunning(); 136 QPEApplication::setKeepRunning();
137 else
138 qApp->quit();
132 139
133} 140}