QmlProject: Don't disable debug action based on debugger window language

If you loaded e.g. a .qmlproject file that had only C++ debugging turned
on the Start debugging action got disabled, and there were no ways of
getting it enabled again (short of reloading the project).

Anyhow, the logic to disable the debug action based on the current
debugger language is flawed, since triggering the action will actually set
the language.

Change-Id: I5827a39cafc7e5dd0b2f2b43f07774e64eace02e
Reviewed-by: hjk <hjk121@nokiamail.com>
Disable publishing action if we can not publish the project

Make sure the publishing action is disabled when we can not publish
a project. Currently the action is enabled and gets the user to a
selection dialog with misleading "I'm afraid I can not do that"
information.

Change-Id: Id3d749e4ada466a2af505586a7d248f2cdc814fe
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>