OSDN Git Service

Git: Only enable submit button when a description is available
authorTobias Hunger <tobias.hunger@nokia.com>
Tue, 23 Nov 2010 15:00:33 +0000 (16:00 +0100)
committerTobias Hunger <tobias.hunger@nokia.com>
Tue, 23 Nov 2010 15:01:48 +0000 (16:01 +0100)
commitd1976d19592f296d2e99dd8f7706984de8189ba4
treed144368bbaac4c234bb5d3abcaaf960f1421757a
parent2f07660e5b160bc1ca100f1c48fa296c823239c5
Git: Only enable submit button when a description is available

Only enable submit button in the git submit editor when a non-empty
desciption of the patch is available. Git rejects empty commit messages
and old versions fail without even giving an error Qt Creator can detect,
so this should make commiting a bit more save.

Task-number: QTCREATORBUG-2410
src/libs/utils/submiteditorwidget.cpp
src/libs/utils/submiteditorwidget.h
src/plugins/git/gitsubmiteditor.cpp
src/plugins/git/gitsubmiteditor.h
src/plugins/git/gitsubmiteditorwidget.cpp
src/plugins/git/gitsubmiteditorwidget.h