-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove option to send email with bug report. Update catkeys. Co-authored-by: humdinger <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -807,16 +807,16 @@ ShowBug(const char* string) | |
{ | ||
BString message = | ||
B_TRANSLATE("CapitalBe has run into a bug. This shouldn't happen, but it has.\n" | ||
"Would you like to:\n\n1) Have CapitalBe make an e-mail to send to Support\n" | ||
"2) Save the bug to a text file for e-mailing later\n" | ||
"3) Just quit and do nothing\n"); | ||
"Would you like to:\n\n1) Save the bug to a text file for uploading to\n" | ||
"CapitalBe's issue tracker (https://github.com/HaikuArchives/CapitalBe/issues)\n\n" | ||
"2) Just quit and do nothing\n"); | ||
|
||
DAlert* alert = | ||
new DAlert(B_TRANSLATE("Agh! Bug!"), message.String(), B_TRANSLATE("Make an E-mail"), | ||
B_TRANSLATE("Save to File"), B_TRANSLATE("Quit")); | ||
new DAlert(B_TRANSLATE("Agh! Bug!"), message.String(), | ||
B_TRANSLATE("Save bugreport"), B_TRANSLATE("Quit")); | ||
int32 value = alert->Go(); | ||
|
||
if (value == 0) { | ||
if (value == 1) { | ||
be_app->PostMessage(M_QUIT_NOW); | ||
return; | ||
} | ||
|
@@ -830,19 +830,16 @@ ShowBug(const char* string) | |
message << "Error: " << string << "\n"; | ||
|
||
if (value == 0) { | ||
// Make an e-mail to myself. :D | ||
|
||
BString cmdstring("/boot/beos/apps/BeMail mailto:[email protected] "); | ||
cmdstring << "-subject 'CapitalBe Bug Report' -body '" << message << "'"; | ||
cmdstring << " &"; | ||
system(cmdstring.String()); | ||
} else if (value == 1) { | ||
// Generate a text file of the bug on the Desktop | ||
BString filename("/boot/home/Desktop/CapitalBe Bug Report "); | ||
filename << real_time_clock() << ".txt"; | ||
BFile file(filename.String(), B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE); | ||
file.Write(message.String(), message.Length()); | ||
file.Unset(); | ||
|
||
// Open GitHub in browser | ||
char* argv[2] = {(char*)"https://github.com/HaikuArchives/CapitalBe/issues/", NULL}; | ||
be_roster->Launch("text/html", 1, argv); | ||
} | ||
|
||
be_app->PostMessage(M_QUIT_NOW); | ||
|