Browse Source

kdcop: avoid registering 'anonymous' dcop clients. This was causing 'DCOP

aborting call' warning messages in .xsession-errors in some conditions.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit e13283fb02)
r14.0.x
Michele Calgaro 2 years ago
parent
commit
b4f1d53278
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF
  1. 2
      kdcop/kdcop.cpp
  2. 1
      kdcop/kdcopwindow.cpp

2
kdcop/kdcop.cpp

@ -8,6 +8,7 @@
#include <tdeaboutdata.h>
#include <tdecmdlineargs.h>
#include <dcopclient.h>
#include "kdcopwindow.h"
static const TDECmdLineOptions options[] =
@ -31,6 +32,7 @@ int main( int argc, char ** argv )
KDCOPWindow* kdcopwindow = new KDCOPWindow;
a.setMainWidget( kdcopwindow );
a.dcopClient()->attach();
kdcopwindow->show();
return a.exec();

1
kdcop/kdcopwindow.cpp

@ -284,7 +284,6 @@ KDCOPWindow::KDCOPWindow(TQWidget *parent, const char * name)
: TDEMainWindow(parent, name)
{
dcopClient = kapp->dcopClient();
dcopClient->attach();
resize( 377, 480 );
statusBar()->message(i18n("Welcome to the TDE DCOP browser"));
setIcon(TDEGlobal::iconLoader()->loadIcon("enhanced_browsing", TDEIcon::NoGroup, TDEIcon::SizeSmall));

Loading…
Cancel
Save