ngraham updated this revision to Diff 57492. ngraham marked 3 inline comments as done. ngraham added a comment.
Put it in a function and then call that function in all the places where things might change REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D20964?vs=57383&id=57492 BRANCH file-type-when-saving-and-mimetype-is-defined (branched from master) REVISION DETAIL https://phabricator.kde.org/D20964 AFFECTED FILES src/filewidgets/kfilewidget.cpp To: ngraham, #vdg, elvisangelaccio, GB_2 Cc: apol, kde-frameworks-devel, michaelh, ngraham, bruns