From 2a11e8010455577a0c39b14e06b3ec1abc43dcc5 Mon Sep 17 00:00:00 2001
From: srosse <none@none>
Date: Mon, 9 Jan 2012 13:40:52 +0100
Subject: [PATCH] OO-45: fix red screen if trying to open a tab but there is
 too many of them open

---
 src/main/java/org/olat/NewControllerFactory.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/olat/NewControllerFactory.java b/src/main/java/org/olat/NewControllerFactory.java
index 81b9fac4e45..1998c8bdadb 100644
--- a/src/main/java/org/olat/NewControllerFactory.java
+++ b/src/main/java/org/olat/NewControllerFactory.java
@@ -244,10 +244,8 @@ public class NewControllerFactory extends LogDelegator {
 
 				dt.setController(launchC);
 				dts.addDTab(dt);
+				dts.activate(ureq, dt, null, entries); // null: do not activate to a certain view
 			}
-
-			dts.activate(ureq, dt, null, entries); // null: do not activate to a certain view
 		}
 	}
-
-}
+}
\ No newline at end of file
-- 
GitLab