[longomatch] Don't show menu when not in edit mode
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Don't show menu when not in edit mode
- Date: Wed, 24 Sep 2014 20:21:45 +0000 (UTC)
commit fd93610f084d622bf8e373cabd845962d108a523
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Sep 1 20:03:39 2014 +0200
Don't show menu when not in edit mode
LongoMatch.GUI/Gui/Component/DashboardWidget.cs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/DashboardWidget.cs b/LongoMatch.GUI/Gui/Component/DashboardWidget.cs
index aa7cb7d..299c61a 100644
--- a/LongoMatch.GUI/Gui/Component/DashboardWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/DashboardWidget.cs
@@ -318,6 +318,10 @@ namespace LongoMatch.Gui.Component
Menu menu;
MenuItem delbut, deltag;
+ if (Mode != TagMode.Edit) {
+ return;
+ }
+
menu = new Menu ();
delbut = new MenuItem (Catalog.GetString ("Delete"));
delbut.Activated += (sender, e) => {RemoveButton (taggerbutton);};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]