Fix crash and lag using the File Dialog
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user