Skip to content

Commit

Permalink
Fix regression: copy and paste were not working anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
Swordfish90 committed Oct 13, 2014
1 parent e4f89f0 commit 08ade0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 10 additions & 6 deletions app/qml/PreprocessedTerminal.qml
Expand Up @@ -66,16 +66,20 @@ Item{

onMBlurChanged: restartBlurredSource()

// Manage copy and paste
Connections{
target: copyAction
onTriggered: kterminal.copyClipboard();
}
Connections{
target: pasteAction
onTriggered: kterminal.pasteClipboard()
}

function restartBlurredSource(){
if(!blurredSourceLoader.item) return;
blurredSourceLoader.item.restartBlurSource();
}
function pasteClipboard(){
kterminal.pasteClipboard();
}
function copyClipboard(){
kterminal.copyClipboard();
}

//When settings are updated sources need to be redrawn.
Connections{
Expand Down
2 changes: 0 additions & 2 deletions app/qml/main.qml
Expand Up @@ -77,13 +77,11 @@ ApplicationWindow{
id: copyAction
text: qsTr("Copy")
shortcut: "Ctrl+Shift+C"
onTriggered: terminal.copyClipboard()
}
Action{
id: pasteAction
text: qsTr("Paste")
shortcut: "Ctrl+Shift+V"
onTriggered: terminal.pasteClipboard()
}
Action{
id: zoomIn
Expand Down

0 comments on commit 08ade0e

Please sign in to comment.