Commit 2f9bbbfc authored by Antonio Prcela's avatar Antonio Prcela 🏞 Committed by Bharadwaj Raju
Browse files

Do not show error message when canceling with rightclick while in rectangluar mode

Don't treat it as an error when 'on click' is enabled and a user presses right mouse
click while taking a screenshot with rectangluar mode, instead of drawing a rectangle
with left click.
Instead, treat it as a simple cancel without failure.

BUG: 446882
parent 8df940d7
......@@ -408,7 +408,9 @@ void SpectacleCore::screenshotFailed()
Q_EMIT allDone();
return;
case StartMode::Gui:
mMainWindow->screenshotFailed();
if (ExportManager::instance()->captureMode() != Spectacle::CaptureMode::RectangularRegion) {
mMainWindow->screenshotFailed();
}
mMainWindow->setScreenshotAndShow(QPixmap());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment