Fix name issue with scripted plasmoids
Due to some problems reading from KWallet, just get the name of the machine. Suggested by pinda to solve problem with JS plasmoids being shared without machine names. Reviewed by pinda svn path=/trunk/KDE/kdelibs/; revision=1037774
This commit is contained in:
parent
ed950edc24
commit
631f1052b1
@ -24,6 +24,7 @@
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QRegExp>
|
||||
#include <QtNetwork/QHostInfo>
|
||||
|
||||
#ifdef QCA2_FOUND
|
||||
#include <QtCrypto>
|
||||
@ -575,7 +576,7 @@ void PackagePrivate::publish(AnnouncementMethods methods)
|
||||
|
||||
QString resourceName =
|
||||
i18nc("%1 is the name of a plasmoid, %2 the name of the machine that plasmoid is published on",
|
||||
"%1 on %2", structure->metadata().name(), AuthorizationManager::self()->d->myCredentials.name());
|
||||
"%1 on %2", structure->metadata().name(), QHostInfo::localHostName());
|
||||
kDebug() << "publishing package under name " << resourceName;
|
||||
service->d->publish(methods, resourceName, structure->metadata());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user