Qml app is more aggressive in parsing links

Some app lile t3legram prepend other textxs when a message is copied, so
 if a retroshare link is passed via t3legram and the user do copy/paste
 on retroshare, retroshare get "some text + retroshare link", to avoid
 the link being forgot we parte pasted textx more aggressively
This commit is contained in:
Gioacchino Mazzurco 2017-04-20 23:53:45 +02:00
parent 7b070e482d
commit 3a3c4691ce
2 changed files with 4 additions and 3 deletions

View File

@ -58,7 +58,7 @@ QtObject
var runState = jsonReponse.data.runstate
if(typeof(runState) !== 'string')
{
console.log("runStateCallback(...) Core is hanged")
console.log("runStateCallback(par)", "Core hanged!", par.response)
return
}

View File

@ -114,8 +114,9 @@ ApplicationWindow
MenuItem
{
text: "Paste Link"
onTriggered:
handleIntentUri(ClipboardWrapper.getFromClipBoard())
onTriggered: UriJs.URI.withinString(
ClipboardWrapper.getFromClipBoard(),
handleIntentUri)
enabled: mainWindow.coreReady
}