[longomatch] Close the app when the DB is locked
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Close the app when the DB is locked
- Date: Sun, 11 Aug 2013 15:09:56 +0000 (UTC)
commit dfea48674c1436fc738d9d6a4a556c999b192620
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Aug 9 21:59:34 2013 +0200
Close the app when the DB is locked
LongoMatch/Main.cs | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch/Main.cs b/LongoMatch/Main.cs
index 67d78bf..6af6843 100644
--- a/LongoMatch/Main.cs
+++ b/LongoMatch/Main.cs
@@ -69,13 +69,9 @@ namespace LongoMatch
Core.Start(guiToolkit, multimediaToolkit);
} catch (DBLockedException locked) {
string msg = Catalog.GetString ("The database seems to be locked by
another instance and " +
- "the application will closed.\n\n
Click \"No\" if you are " +
- "completely sure this is the only
instance running and you want to " +
- "continue at your own risk.");
+ "the application will closed.");
Log.Exception (locked);
- if (MessagesHelpers.QuestionMessage (null, msg)) {
- return;
- }
+ return;
}
Application.Run();
} catch(Exception ex) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]