SUMMARY STEPS TO REPRODUCE 1. open an image with gwenview 2. crop such image 3. click on "Save as" button on top 4. type a file name with an invalid extension like "image.aaa" and press enter/return OBSERVED RESULT As we can see in the attached screenshot, gwenview shows two warnings at the same time. EXPECTED RESULT gwenview should only show the warning with "Save as..." and "Cancel" buttons SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.18.80 KDE Frameworks Version: 5.68.0 Qt Version: 5.13.2
Created attachment 125821 [details] screenshot
Happens because we get both: https://invent.kde.org/graphics/gwenview/-/blob/master/lib/document/savejob.cpp#L75 and https://invent.kde.org/graphics/gwenview/-/blob/master/app/gvcore.cpp#L451 when an save error occurs. The first one gives the error message, the second one the more detailed warning with the possibility to "save as" again. Tried some approaches, but can't remove the error message. Since the second one is more detailed, I'd rather keep that one. Thoughts?
STEPS TO REPRODUCE with current Gwenview master: 1. open an image with gwenview 2. open File menu and choose "Save as" (or press ctrl+shift+s) 3. Uncheck "Automatically select filename extension" on bottom 4. type a file name with an invalid extension like "image.aaa" and press enter/return Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.22.80 KDE Frameworks Version: 5.83.0 Qt Version: 5.15.2 Graphics Platform: Wayland
*** Bug 421150 has been marked as a duplicate of this bug. ***