File changeset_re52b6b0ac0292abdf654e4fb408fd501542c02fa.diff of Package kdebase4.import5302

commit e52b6b0ac0292abdf654e4fb408fd501542c02fa
Author: Kurt Hindenburg <kurt.hindenburg@gmail.com>
Date:   Sat Feb 5 16:00:23 2011 -0500

    Disable tab close methods until the issue of menu being trashed can be
    resolved.
    
    Backport to 4.6 branch.
    CCBUG: 185466

diff --git a/src/ViewContainer.cpp b/src/ViewContainer.cpp
index 79993ed..3e3cb35 100644
--- a/src/ViewContainer.cpp
+++ b/src/ViewContainer.cpp
@@ -443,6 +443,7 @@ TabbedViewContainer::TabbedViewContainer(NavigationPosition position , QObject*
     _closeTabButton->setIcon(KIcon("tab-close"));
     _closeTabButton->adjustSize();
     _closeTabButton->setHidden(true);
+    _closeTabButton->setEnabled(false);
 
     connect( _tabBar , SIGNAL(currentChanged(int)) , this , SLOT(currentTabChanged(int)) );
     connect( _tabBar , SIGNAL(tabDoubleClicked(int)) , this , SLOT(tabDoubleClicked(int)) );
@@ -494,11 +495,11 @@ TabbedViewContainer::TabbedViewContainer(NavigationPosition position , QObject*
     _contextPopupMenu->addAction(KIcon(),
         i18nc("@action:inmenu", "&Rename Tab..."), this,
         SLOT(tabContextMenuRenameTab()));
-
+/*
     _contextPopupMenu->addAction(KIcon("tab-close"),
         i18nc("@action:inmenu", "&Close Tab"), this,
         SLOT(tabContextMenuCloseTab()));
-
+*/
 }
 void TabbedViewContainer::setNewViewMenu(QMenu* menu)
 {