Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update terminal.cpp
  • Loading branch information
CODeRUS committed Mar 28, 2014
1 parent 546ff39 commit 7108c0d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions terminal.cpp
Expand Up @@ -1144,11 +1144,9 @@ void Terminal::pasteFromClipboard()
{
QClipboard *cb = QGuiApplication::clipboard();

if(!cb->->text().isEmpty()) {
if(iPtyIFace) {
resetBackBufferScrollPos();
iPtyIFace->writeTerm(cb->text());
}
if(iPtyIFace && !cb->text().isEmpty()) {
resetBackBufferScrollPos();
iPtyIFace->writeTerm(cb->text());
}
}

Expand Down

0 comments on commit 7108c0d

Please sign in to comment.