This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 203285 - It is possible to close the "unclosable" tab
Summary: It is possible to close the "unclosable" tab
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 181181 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-07 09:37 UTC by AngeloD
Modified: 2011-12-12 14:45 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
a new method has been implemented to check if the tab is closable (2.85 KB, patch)
2011-10-19 21:30 UTC, AngeloD
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description AngeloD 2011-10-07 09:37:40 UTC
It is possible to close the "unclosable" tab.

To repeat:

1. Start with an unclosable tab "TC1"
2. Open another tab "TC2", this is now on the right side of TC1
3. Click on TC1 where there should be the X to close (the X is not there because TC1 is not closable) and the tab TC1 is closed.

This bug is probably related to #181181 and is reproducible in both Windows and Solaris.
Comment 1 AngeloD 2011-10-19 21:30:29 UTC
Created attachment 112237 [details]
a new method has been implemented to check if the tab is closable
Comment 2 AngeloD 2011-10-19 21:31:33 UTC
We looked into the issue, the problem is in the check that should prevent an unclosable tab to be closed.

Attached the diff with the fix.

Increased the priority to P2, it is a simple fix.
Comment 3 Stanislav Aubrecht 2011-10-21 13:15:28 UTC
*** Bug 181181 has been marked as a duplicate of this bug. ***
Comment 4 Stanislav Aubrecht 2011-10-21 13:17:35 UTC
core-main b638855e67f5
Comment 5 Quality Engineering 2011-10-25 14:49:05 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/b638855e67f5
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #203285 - do not close unclosable tabs
Comment 6 ttokoly 2011-12-12 14:45:51 UTC
Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10
System: Linux version 3.0.0-14-generic running on i386; UTF-8; en_US (nb)

Works for me -> verified.