[longomatch] Fix cancelling imports with more than 1 option
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix cancelling imports with more than 1 option
- Date: Tue, 3 Feb 2015 17:18:22 +0000 (UTC)
commit 02ba5d9b37c6dbc87f9f7c7f9119bf19fe17a2f4
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Feb 3 18:17:47 2015 +0100
Fix cancelling imports with more than 1 option
LongoMatch.Services/Services/ToolsManager.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Services/Services/ToolsManager.cs b/LongoMatch.Services/Services/ToolsManager.cs
index c595d7d..c44591a 100644
--- a/LongoMatch.Services/Services/ToolsManager.cs
+++ b/LongoMatch.Services/Services/ToolsManager.cs
@@ -162,6 +162,9 @@ namespace LongoMatch.Services
} else {
importer = ChooseImporter (importers);
}
+ if (importer == null) {
+ return;
+ }
project = importer.ImportFunction (fileName);
if (importer.NeedsEdition) {
Config.EventsBroker.EmitNewProject (project);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]