-rw-r--r-- | x11/libqpe-x11/qpe/qpeapplication.cpp | 4 | ||||
-rw-r--r-- | x11/libqpe-x11/qt/qcopchannel_qws.cpp | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/x11/libqpe-x11/qpe/qpeapplication.cpp b/x11/libqpe-x11/qpe/qpeapplication.cpp index 49115d8..c4f8f38 100644 --- a/x11/libqpe-x11/qpe/qpeapplication.cpp +++ b/x11/libqpe-x11/qpe/qpeapplication.cpp | |||
@@ -501,4 +501,4 @@ void QPEApplication::internalSetStyle( const QString& ) { | |||
501 | } | 501 | } |
502 | void QPEApplication::systemMessage( const QCString&, const QByteArray& ) { | 502 | void QPEApplication::systemMessage( const QCString& chan, const QByteArray& ) { |
503 | 503 | qWarning("QPEApplication::systemMessage( %s )", chan.data() ); | |
504 | } | 504 | } |
diff --git a/x11/libqpe-x11/qt/qcopchannel_qws.cpp b/x11/libqpe-x11/qt/qcopchannel_qws.cpp index 1cea80c..706756e 100644 --- a/x11/libqpe-x11/qt/qcopchannel_qws.cpp +++ b/x11/libqpe-x11/qt/qcopchannel_qws.cpp | |||
@@ -19,6 +19,9 @@ QCopChannel::QCopChannel( const QCString& channel, QObject* parent, | |||
19 | if (!m_refCount.contains( m_chan ) || !m_refCount[m_chan] ) { | 19 | if (!m_refCount.contains( m_chan ) || !m_refCount[m_chan] ) { |
20 | qWarning("adding channel %s", m_chan.data() ); | ||
20 | m_refCount[m_chan] = 1; | 21 | m_refCount[m_chan] = 1; |
21 | OCOPClient::self()->addChannel( m_chan ); | 22 | OCOPClient::self()->addChannel( m_chan ); |
22 | }else | 23 | }else{ |
24 | qWarning("reffing up for %s %d", m_chan.data(), m_refCount[m_chan] ); | ||
23 | m_refCount[m_chan]++; | 25 | m_refCount[m_chan]++; |
26 | } | ||
24 | 27 | ||
@@ -47,3 +50,7 @@ QCString QCopChannel::channel()const { | |||
47 | } | 50 | } |
48 | bool QCopChannel::isRegistered( const QCString& chan) {; | 51 | bool QCopChannel::isRegistered( const QCString& chan) { |
52 | if (m_refCount.contains(chan) ) { | ||
53 | qDebug("Client:locally contains"); | ||
54 | return true; | ||
55 | } | ||
49 | return OCOPClient::self()->isRegistered( chan ); | 56 | return OCOPClient::self()->isRegistered( chan ); |