| 163 | m_commitBtn->setToolTip(i18n("Please stage some changes before committing.")); |
| 164 | } |
| 165 | void SimpleCommitForm::enableCommitButton() |
| 166 | { |
| 167 | m_disabled = false; |
| 168 | if (m_summaryEdit->text().size() > 0) { |
| 169 | m_commitBtn->setToolTip(i18n("Commit changes to <b>%1</b> on branch <b>%2</b>", m_projectName, m_branchName)); |
| 170 | m_commitBtn->setDisabled(false); |
| 171 | } else { |
| 172 | m_commitBtn->setToolTip(i18n("To commit changes, please write a commit message first")); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | void SimpleCommitForm::disable() |
| 177 | { |
no test coverage detected