[longomatch] Return a null project if File is null
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Return a null project if File is null
- Date: Thu, 25 Mar 2010 20:48:39 +0000 (UTC)
commit 116c51a7d1b0078d584c6fe11fa7a51e07e3a142
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]