summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2015-05-24 12:02:17 +0200
committerSlávek Banko <[email protected]>2015-05-24 12:09:42 +0200
commitc6c1d781a5035e6740532366a09a48448a93666c (patch)
tree28a36a094c064d1f83a35e08e7a1c8d4773efc49 /tdecore
parent19933cdbed46c2fb95f9133c592b35fcb201fc69 (diff)
downloadtdelibs-c6c1d781a5035e6740532366a09a48448a93666c.tar.gz
tdelibs-c6c1d781a5035e6740532366a09a48448a93666c.zip
Force to handle DCOP requests in KUniqueApplication (newInstance call)
This resolves Bug 2437 Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/kuniqueapplication.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/tdecore/kuniqueapplication.cpp b/tdecore/kuniqueapplication.cpp
index 0a3a0962a..12c9c1297 100644
--- a/tdecore/kuniqueapplication.cpp
+++ b/tdecore/kuniqueapplication.cpp
@@ -322,9 +322,14 @@ KUniqueApplication::KUniqueApplication(bool allowStyles, bool GUIenabled, bool c
d->processingRequest = false;
d->firstInstance = true;
- if (s_nofork)
+ if (s_nofork) {
// Can't call newInstance directly from the constructor since it's virtual...
TQTimer::singleShot( 0, this, TQT_SLOT(newInstanceNoFork()) );
+ }
+ else {
+ // Force to handle DCOP requests (newInstance call)
+ TQTimer::singleShot( 0, this, TQT_SLOT(processDelayed()));
+ }
}
@@ -338,9 +343,14 @@ KUniqueApplication::KUniqueApplication(Display *display, Qt::HANDLE visual,
d->processingRequest = false;
d->firstInstance = true;
- if (s_nofork)
+ if (s_nofork) {
// Can't call newInstance directly from the constructor since it's virtual...
TQTimer::singleShot( 0, this, TQT_SLOT(newInstanceNoFork()) );
+ }
+ else {
+ // Force to handle DCOP requests (newInstance call)
+ TQTimer::singleShot( 0, this, TQT_SLOT(processDelayed()));
+ }
}
#endif