From b59a51f2c9ca8400cb57af2603daec68c138eaa3 Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Thu, 27 Jan 2011 15:26:13 +0000 Subject: [PATCH] Disable tab close methods until the issue of menu being trashed can be resolved. CCBUG: 185466 svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1217498 --- src/ViewContainer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ViewContainer.cpp b/src/ViewContainer.cpp index 79993edc5..0a7a0c52b 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)) ); @@ -495,9 +496,9 @@ TabbedViewContainer::TabbedViewContainer(NavigationPosition position , QObject* i18nc("@action:inmenu", "&Rename Tab..."), this, SLOT(tabContextMenuRenameTab())); - _contextPopupMenu->addAction(KIcon("tab-close"), - i18nc("@action:inmenu", "&Close Tab"), this, - SLOT(tabContextMenuCloseTab())); +// _contextPopupMenu->addAction(KIcon("tab-close"), +// i18nc("@action:inmenu", "&Close Tab"), this, +// SLOT(tabContextMenuCloseTab())); } void TabbedViewContainer::setNewViewMenu(QMenu* menu)