| Summary: | "Screenshot of Selection": Can't save screenshots | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | madness742 |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | 25.04.0 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/ktexteditor/-/commit/c74e5bedde4b8de0ae4a7b23175ddf0bf76a1da5 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
madness742
2025-05-06 04:04:45 UTC
Git commit c74e5bedde4b8de0ae4a7b23175ddf0bf76a1da5 by Waqar Ahmed. Committed on 06/05/2025 at 04:54. Pushed by waqar into branch 'master'. Fix error logic Check whether write succeeded instead of checking for errorString. QImageWriter's error enum is broken, it is always UnknownError if there was no error thus there is always an errorString. M +1 -2 src/view/screenshotdialog.cpp https://invent.kde.org/frameworks/ktexteditor/-/commit/c74e5bedde4b8de0ae4a7b23175ddf0bf76a1da5 > "screenshot.jpg" <-- Screenshot saving failed: Unknown error
> "screenshot.png" <-- Screenshot saving failed: Unknown error
In the above two cases, the file is actually created and saved correctly in my testing. The error is bogus, you can ignore that.
Thank you for the quick fix. Please let me know if I should post this somewhere else, but I wanted to leave a small suggestion. It would be great if the "Save" dialogue has the same behaviour as Spectacle. As in available/default File Types (PNG Image) and pre-filled name (Screenshot_$CurrentTimestamp). It makes for a nice coherent experience. :) |