[office-runner] Fix setting new records when timing out
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [office-runner] Fix setting new records when timing out
- Date: Fri, 16 Sep 2011 14:37:37 +0000 (UTC)
commit 8e32e2492b40e3e18ca001d3b64bd15bc0bb4955
Author: Bastien Nocera <hadess hadess net>
Date: Fri Sep 16 14:03:53 2011 +0100
Fix setting new records when timing out
When we took too long, we still used that time to
calculate whether we had a new record, which we would against
the stock records.
src/office-runner.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/office-runner.c b/src/office-runner.c
index 8c6ba32..217f088 100644
--- a/src/office-runner.c
+++ b/src/office-runner.c
@@ -343,16 +343,16 @@ switch_to_page (OfficeRunner *run,
run->timeout = 0;
label = N_("Try Again");
- if (run->elapsed >= MAX_TIME)
+ if (run->elapsed >= MAX_TIME) {
text = g_strdup (_("Took too long, sorry!"));
- else
+ } else {
text = elapsed_to_text (run->elapsed);
+ if (is_new_record (run))
+ gtk_label_set_text (LWID("mark_label"), _("New Record!"));
+ }
gtk_label_set_text (GTK_LABEL (run->your_time_label), text);
g_free (text);
- if (is_new_record (run))
- gtk_label_set_text (LWID("mark_label"), _("New Record!"));
-
set_records_page (run);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]