[longomatch/fakelive] Return a null project if File is null
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/fakelive] Return a null project if File is null
- Date: Mon, 15 Mar 2010 21:45:06 +0000 (UTC)
commit 8a4a662ada7bc3851c687fcab69151a4a0697647
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Mar 7 18:07:03 2010 +0100
Return a null project if File is null
LongoMatch/Gui/Component/ProjectDetailsWidget.cs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
index f635dcc..22dccd6 100644
--- a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
@@ -274,6 +274,10 @@ namespace LongoMatch.Gui.Component
}
}
else {
+ // New imported project from a fake live analysis will have a null File
+ // return null to force selecting a new file.
+ if (mFile == null)
+ return null;
UpdateProject();
return project;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]