Skip to content

Commit

Permalink
Refactor: changes text and name of function
Browse files Browse the repository at this point in the history
  • Loading branch information
claucece committed Aug 24, 2017
1 parent 8c19ffb commit 2ed4758
Show file tree
Hide file tree
Showing 7 changed files with 148 additions and 142 deletions.
30 changes: 15 additions & 15 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions gui/account_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func (u *gtkUI) accountDialog(s access.Session, account *config.Account, saveFun
if len(accDtails.accTxt) == 0 || (len(accDtails.passTxt) == 0 && account.Password == "") {
err = " Cannot add the account:\n\n" +
" Please, fill out the mandatory fields."
renderAccountAddError(data, err)
renderAddAccountError(data, err)
log.Printf("Cannot add account: mandatory fields missing.")
return
}
Expand All @@ -337,7 +337,7 @@ func (u *gtkUI) accountDialog(s access.Session, account *config.Account, saveFun
}

if !isJid {
renderAccountAddError(data, err)
renderAddAccountError(data, err)
log.Printf(err)
failures++
return
Expand Down Expand Up @@ -412,7 +412,7 @@ func (u *gtkUI) accountDialog(s access.Session, account *config.Account, saveFun
}
}

func renderAccountAddError(data *accountDetailsData, err string) {
func renderAddAccountError(data *accountDetailsData, err string) {
notification := buildBadUsernameNotification(err)
data.notificationArea.Add(notification)
notification.ShowAll()
Expand Down

0 comments on commit 2ed4758

Please sign in to comment.