Currently, when doing Save As... operations, Spectacle outright ignores the filetype you choose in Settings and always defaults to saving as a .png file. This patch fixes that.
BUG: 399773
FIXED-IN: 18.12.0
broulik | |
utecht | |
alexeymin | |
shubham |
Spectacle | |
KDE Applications |
Currently, when doing Save As... operations, Spectacle outright ignores the filetype you choose in Settings and always defaults to saving as a .png file. This patch fixes that.
BUG: 399773
FIXED-IN: 18.12.0
The file dialog now comes pre-populated with the correct file type, and saving file saves it as that file type.
Tested with all available file types.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
src/ExportManager.cpp | ||
---|---|---|
413 | Sorry, mimeTypeForName is wrong :D So you should go back to mimeTypeForFile but using QMimeDatabase::MatchExtension so it doesn't try to open a file that may or may not exist |
Thanks Albert! Interestingly enough, all three variants actually worked. But hey, why not do it right?