Fix shortcut key failure

pull/5/head
reionwong 5 years ago
parent 4e2fb57b78
commit 172f352459

@ -52,6 +52,8 @@ void ScreenshotView::start()
p.save("/tmp/cutefish-screenshot.png");
setVisible(true);
setMouseGrabEnabled(true);
setKeyboardGrabEnabled(true);
emit refresh();
}
@ -138,5 +140,5 @@ void ScreenshotView::copyToClipboard(QRect rect)
void ScreenshotView::removeTmpFile()
{
bool success = QFile("/tmp/cutefish-screenshot.png").remove();
QFile("/tmp/cutefish-screenshot.png").remove();
}

Loading…
Cancel
Save