Merge branch 'stable'
This commit is contained in:
commit
ca4a81b8e8
3 changed files with 4 additions and 5 deletions
|
@ -110,9 +110,8 @@ int main(int argc, char** argv)
|
|||
QTextStream(stderr) << i18n("No device specified") << endl;
|
||||
}
|
||||
device = parser.value("device");
|
||||
QUrl url;
|
||||
if(parser.isSet("share")) {
|
||||
url = QUrl::fromUserInput(parser.value("share"), QDir::currentPath());
|
||||
QUrl url = QUrl::fromUserInput(parser.value("share"), QDir::currentPath());
|
||||
parser.clearPositionalArguments();
|
||||
if(!url.isEmpty() && !device.isEmpty()) {
|
||||
QDBusMessage msg = QDBusMessage::createMethodCall("org.kde.kdeconnect", "/modules/kdeconnect/devices/"+device+"/share", "org.kde.kdeconnect.device.share", "shareUrl");
|
||||
|
|
|
@ -80,7 +80,7 @@ void FileTransferJob::startTransfer()
|
|||
mTime = QTime::currentTime();
|
||||
description(this, i18n("Receiving file over KDE-Connect"),
|
||||
QPair<QString, QString>(i18nc("File transfer origin", "From"),
|
||||
QString(mDeviceName)),
|
||||
mDeviceName),
|
||||
QPair<QString, QString>(i18nc("File transfer destination", "To"), mDestination.toLocalFile()));
|
||||
|
||||
mReply = Daemon::instance()->networkAccessManager()->put(QNetworkRequest(mDestination), mOrigin.data());
|
||||
|
|
|
@ -59,8 +59,8 @@ void NetworkPackage::createIdentityPackage(NetworkPackage* np)
|
|||
np->set("deviceName", config->name());
|
||||
np->set("deviceType", config->deviceType());
|
||||
np->set("protocolVersion", NetworkPackage::ProtocolVersion);
|
||||
np->set("SupportedIncomingInterfaces", PluginLoader::instance()->incomingInterfaces().join(","));
|
||||
np->set("SupportedOutgoingInterfaces", PluginLoader::instance()->outgoingInterfaces().join(","));
|
||||
np->set("SupportedIncomingInterfaces", PluginLoader::instance()->incomingInterfaces());
|
||||
np->set("SupportedOutgoingInterfaces", PluginLoader::instance()->outgoingInterfaces());
|
||||
|
||||
//qCDebug(KDECONNECT_CORE) << "createIdentityPackage" << np->serialize();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue