diff options
author | Michele Calgaro <[email protected]> | 2020-11-28 20:34:25 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-11-28 20:37:29 +0900 |
commit | b4f1d53278a0a7039032d01ff1883011463a54e9 (patch) | |
tree | 0c9bc6ea5969c030d2c415c00efa499a368e2b64 | |
parent | 6aa392e1314567b23ab733fc5e8cf8332a344452 (diff) | |
download | tdebase-b4f1d53278a0a7039032d01ff1883011463a54e9.tar.gz tdebase-b4f1d53278a0a7039032d01ff1883011463a54e9.zip |
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 <[email protected]>
(cherry picked from commit e13283fb02daf24eaf8fdb98057cf03c1bd46fd4)
-rw-r--r-- | kdcop/kdcop.cpp | 2 | ||||
-rw-r--r-- | kdcop/kdcopwindow.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/kdcop/kdcop.cpp b/kdcop/kdcop.cpp index 436a4a59a..018976eaa 100644 --- a/kdcop/kdcop.cpp +++ b/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(); diff --git a/kdcop/kdcopwindow.cpp b/kdcop/kdcopwindow.cpp index 29195de99..e882499cc 100644 --- a/kdcop/kdcopwindow.cpp +++ b/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)); |