[chronojump] Typo fixed in a variable name
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Typo fixed in a variable name
- Date: Tue, 21 Jul 2015 20:15:32 +0000 (UTC)
commit 1447b9b0608c455dcc9d00b24b53cb6fc21d8e2f
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jul 21 22:08:50 2015 +0200
Typo fixed in a variable name
src/chronojump.cs | 87 +++++++++++++++++++++++++---------------------------
1 files changed, 42 insertions(+), 45 deletions(-)
---
diff --git a/src/chronojump.cs b/src/chronojump.cs
index 7a471f1..88c54d1 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -41,7 +41,7 @@ public class ChronoJump
private string runningFileName; //useful for knowing if there are two chronojump instances
private string messageToShowOnBoot = "";
- private string messageChrashedBefore = "";
+ private string messageCrashedBefore = "";
private bool chronojumpHasToExit = false;
[Widget] Gtk.Button fakeSplashButton; //raised when splash win ended
@@ -418,7 +418,7 @@ public class ChronoJump
messageToShowOnBoot += "\n" + Catalog.GetString("Chronojump crashed before.")
+ "\n" +
Catalog.GetString("Please, update to new version: ") +
versionAvailableKnown + "\n";
else {
- messageToShowOnBoot += messageChrashedBefore;
+ messageToShowOnBoot += messageCrashedBefore;
//SqlitePreferences.Update("videoOn", "False", true);
}
}
@@ -650,54 +650,51 @@ public class ChronoJump
}
*/
- /* ---------------------
- * other support methods
- * ---------------------*/
-
- private void chronojumpCrashedBefore() {
-
- /*
- string windowsTextLog = "";
-
- string crashLogFile = Log.GetLast().Replace(".txt", "-crash.txt");
- //on vista there's no crash file because redirection is forbidden
- if(UtilAll.IsWindows() && File.Exists(crashLogFile))
- windowsTextLog = "\n" + crashLogFile;
- */
-
- //if there's a copy on temp...
- if(File.Exists(Util.GetDatabaseTempDir() + Path.DirectorySeparatorChar + "chronojump.db")) {
-
- // if exist also a file in default db location (improbable but done for solve
eventual problems
- if(File.Exists(Util.GetDatabaseDir() + Path.DirectorySeparatorChar +
"chronojump.db")) {
- Util.BackupDatabase();//copy it to backup
- File.Delete(Util.GetDatabaseDir() + Path.DirectorySeparatorChar +
"chronojump.db"); //delete it
- }
-
- //move temp dir to default db location dir
- File.Move(Util.GetDatabaseTempDir() + Path.DirectorySeparatorChar + "chronojump.db",
- Util.GetDatabaseDir() + Path.DirectorySeparatorChar + "chronojump.db");
- }
-
-
- messageChrashedBefore = "\n" +
+ /* ---------------------
+ * other support methods
+ * ---------------------*/
+
+ private void chronojumpCrashedBefore()
+ {
+ /*
+ string windowsTextLog = "";
+
+ string crashLogFile = Log.GetLast().Replace(".txt", "-crash.txt");
+ //on vista there's no crash file because redirection is forbidden
+ if(UtilAll.IsWindows() && File.Exists(crashLogFile))
+ windowsTextLog = "\n" + crashLogFile;
+ */
+
+ //if there's a copy on temp...
+ if(File.Exists(Util.GetDatabaseTempDir() + Path.DirectorySeparatorChar + "chronojump.db"))
+ {
+ // if exist also a file in default db location (improbable but done for solve
eventual problems
+ if(File.Exists(Util.GetDatabaseDir() + Path.DirectorySeparatorChar +
"chronojump.db")) {
+ Util.BackupDatabase();//copy it to backup
+ File.Delete(Util.GetDatabaseDir() + Path.DirectorySeparatorChar +
"chronojump.db"); //delete it
+ }
+
+ //move temp dir to default db location dir
+ File.Move(Util.GetDatabaseTempDir() + Path.DirectorySeparatorChar + "chronojump.db",
+ Util.GetDatabaseDir() + Path.DirectorySeparatorChar +
"chronojump.db");
+ }
+
+ messageCrashedBefore = "\n" +
string.Format(Catalog.GetString("Chronojump {0} crashed before."), progVersion) +
"\n\n" +
Catalog.GetString("Please, fill your email and click on 'Send error log' in order to
fix this fast and contact you if appropriate.") + "\n\n" +
Catalog.GetString("Your help is needed.") + "\n";
-
- //messageChrashedBefore += "\n" + Catalog.GetString("Experimental webcam record has been
disabled.") + "\n";
-
- /*
- * This are the only outputs to Console. Other's use Log that prints to console and to log
file
- * this doesn't go to log because it talks about log
- */
- LogB.Warning(messageChrashedBefore);
-
- return;
- }
-
+ //messageCrashedBefore += "\n" + Catalog.GetString("Experimental webcam record has been
disabled.") + "\n";
+
+ /*
+ * This are the only outputs to Console. Other's use Log that prints to console and to log
file
+ * this doesn't go to log because it talks about log
+ */
+ LogB.Warning(messageCrashedBefore);
+ return;
+ }
+
//recuperate temp jumpRj or RunI if chronojump hangs
private string recuperateBrokenEvents()
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]