Changes: Workaround for MComponentData instantiation in input method plugin.

A merge request removing the instantiation has already been applied
         to the input method master, so this patch should be removed once
         the change has been integrated.
pull/1/head
Pertti Kellomäki 15 years ago committed by Antti Kervinen
parent 05661097b5
commit b209c33a88

@ -47,7 +47,13 @@ void QDeclarativeBoosterCachePrivate::populate()
{
static const char *const emptyString = "";
static const char *const appName = "qdeclarativeboostercache_pre_initialized_qapplication";
static const char *const appNameFormat = "qdeclarativeboostercache_pre_initialized_qapplication%d";
static char appName[strlen(appNameFormat) + 8];
// Append pid to appName to make it unique. This is required because the
// libminputcontext.so instantiates MComponentData, which in turn registers
// a dbus service with the application's name.
sprintf(appName, appNameFormat, getpid());
// We support at most ARGV_LIMIT arguments in QCoreApplication. These will be set when real
// arguments are known (in QDeclarativeBoosterCachePrivate::qApplication).

Loading…
Cancel
Save