[chronojump] Fixed 1RM save condition
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed 1RM save condition
- Date: Thu, 19 Feb 2015 13:21:23 +0000 (UTC)
commit 85c19db79aa51fca2bd42526dfde88b07f0b93fd
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Feb 19 12:31:30 2015 +0100
Fixed 1RM save condition
src/gui/encoder.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index e5c4b18..334fde3 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -3267,7 +3267,7 @@ public partial class ChronoJumpWindow
string contents = Util.ReadFile(UtilEncoder.GetEncoderSpecialDataTempFileName(), true);
//if 1RM button is sensitive and there's no 1RM data
//(because a not-1RM test have been done and software has a sensitivity bug), return
- if(contents != null && contents != "") {
+ if(contents == null || contents == "") {
new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Not enough
data."));
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]