From bf62b1f845d2808baa285887555e96f7a1379dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 30 Sep 2014 21:54:44 +0200 Subject: [PATCH] HaikuDepot: Changed alert message for updating a rating --- src/apps/haikudepot/ui/RatePackageWindow.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/apps/haikudepot/ui/RatePackageWindow.cpp b/src/apps/haikudepot/ui/RatePackageWindow.cpp index 6fe5b94745..53c2e0cc51 100644 --- a/src/apps/haikudepot/ui/RatePackageWindow.cpp +++ b/src/apps/haikudepot/ui/RatePackageWindow.cpp @@ -541,17 +541,25 @@ RatePackageWindow::_SendRatingThread() alert->Go(); fprintf(stderr, - B_TRANSLATE("Failed to create account: %s\n"), error.String()); + B_TRANSLATE("Failed to create or update rating: %s\n"), + error.String()); _SetWorkerThread(-1); } else { _SetWorkerThread(-1); BMessenger(this).SendMessage(B_QUIT_REQUESTED); + BString message; + if (ratingID.Length() > 0) { + message = B_TRANSLATE("Your rating was updated successfully."); + } else { + message = B_TRANSLATE("Your rating was uploaded successfully. " + "You can update it at any time."); + } + BAlert* alert = new(std::nothrow) BAlert( B_TRANSLATE("Success"), - B_TRANSLATE("Your rating was uploaded successfully. " - "You can update it at any time."), + message, B_TRANSLATE("Close")); if (alert != NULL)