Fix invalid input report

This commit is contained in:
Michal Horejsek
2021-01-12 15:37:13 +01:00
parent 1909ceed67
commit 2feaba8888
4 changed files with 39 additions and 10 deletions

View File

@ -311,6 +311,9 @@ func (f *FrontendQt) sendBug(description, emailClient, address string) bool {
if f.Accounts.Model.Count() > 0 {
accname = f.Accounts.Model.Get(0).Account()
}
if accname == "" {
accname = "Unknown account"
}
if err := f.ie.ReportBug(
core.QSysInfo_ProductType(),

View File

@ -466,6 +466,9 @@ func (s *FrontendQt) sendBug(description, client, address string) (isOK bool) {
if s.Accounts.Count() > 0 {
accname = s.Accounts.get(0).Account()
}
if accname == "" {
accname = "Unknown account"
}
if err := s.bridge.ReportBug(
core.QSysInfo_ProductType(),
core.QSysInfo_PrettyProductName(),