Fix crash and lag using the File Dialog

This commit is contained in:
lupoDharkael
2017-06-12 03:31:13 +02:00
parent e2eb5aee77
commit 8d27dc6660
3 changed files with 39 additions and 27 deletions

View File

@@ -394,11 +394,13 @@ void CaptureWidget::keyPressEvent(QKeyEvent *e) {
}
void CaptureWidget::saveScreenshot() {
hide();
if (m_selection.isNull()) {
m_screenshot->graphicalSave();
m_screenshot->graphicalSave(QRect(), this);
} else { // save full screen when no selection
m_screenshot->graphicalSave(getExtendedSelection());
m_screenshot->graphicalSave(getExtendedSelection(), this);
}
close();
}
void CaptureWidget::copyScreenshot() {