Fix a warning in Core::sleep()
Get rid of a warning in dialoguploader.ui
Remove unused code