[longomatch] Do not show empty popup on dashboard widget.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Do not show empty popup on dashboard widget.
- Date: Tue, 5 May 2015 09:11:03 +0000 (UTC)
commit 4b8369f6f88d7403d3bbebe27a2515fd8cdd8f17
Author: Xavi Artigas <xartigas fluendo com>
Date: Mon May 4 17:13:12 2015 +0200
Do not show empty popup on dashboard widget.
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 482e585..ecf4bbc 100644
--- a/LongoMatch.GUI/Gui/Component/DashboardWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/DashboardWidget.cs
@@ -453,6 +453,10 @@ namespace LongoMatch.Gui.Component
if (Mode != DashboardMode.Edit) {
return;
}
+
+ if (buttons.Count == 0 && links.Count == 0) {
+ return;
+ }
menu = new Menu ();
foreach (DashboardButton button in buttons) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]