[longomatch] Don't try to render a playlist if it's empty
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Don't try to render a playlist if it's empty
- Date: Mon, 6 Feb 2012 02:12:55 +0000 (UTC)
commit a2aea89c51727545cfa406b1a3debf5bd1e5f0c7
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Jan 30 22:19:40 2012 +0100
Don't try to render a playlist if it's empty
LongoMatch.GUI/Gui/GUIToolkit.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/GUIToolkit.cs b/LongoMatch.GUI/Gui/GUIToolkit.cs
index 224b594..e7aba76 100644
--- a/LongoMatch.GUI/Gui/GUIToolkit.cs
+++ b/LongoMatch.GUI/Gui/GUIToolkit.cs
@@ -103,6 +103,11 @@ namespace LongoMatch.Gui
VideoEditionProperties vep;
Job job = null;
int response;
+
+ if (playlist.Count == 0) {
+ WarningMessage(Catalog.GetString("The playlist you want to render is empty."));
+ return null;
+ }
vep = new VideoEditionProperties();
vep.TransientFor = mainWindow as Gtk.Window;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]