Author: jflesch
Date: 2007-04-23 13:27:37 +0000 (Mon, 23 Apr 2007)
New Revision: 12897

Modified:
   trunk/apps/Thaw/src/thaw/plugins/index/BlackList.java
   trunk/apps/Thaw/src/thaw/plugins/index/CommentTab.java
Log:
Fix behavior when trying to display a tab already displayed

Modified: trunk/apps/Thaw/src/thaw/plugins/index/BlackList.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/BlackList.java       2007-04-23 
13:15:20 UTC (rev 12896)
+++ trunk/apps/Thaw/src/thaw/plugins/index/BlackList.java       2007-04-23 
13:27:37 UTC (rev 12897)
@@ -171,8 +171,11 @@


        public void displayPanel() {
-               if (visible)
+               if (visible) {
+                       updateList();
+                       core.getMainWindow().setSelectedTab(panel);
                        return;
+               }

                visible = true;
                updateList();

Modified: trunk/apps/Thaw/src/thaw/plugins/index/CommentTab.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/CommentTab.java      2007-04-23 
13:15:20 UTC (rev 12896)
+++ trunk/apps/Thaw/src/thaw/plugins/index/CommentTab.java      2007-04-23 
13:27:37 UTC (rev 12897)
@@ -146,9 +146,15 @@


        public void showTab() {
-               if (index == null || visible)
+               if (index == null)
                        return;

+               if (visible) {
+                       updateCommentList();
+                       indexBrowser.getMainWindow().setSelectedTab(tabPanel);
+                       return;
+               }
+
                Logger.info(this, "Showing comment tab");

                updateCommentList();


Reply via email to