summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-06-04 02:38:35 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-06-04 02:38:35 +0200
commitd44c64e440e8d551d528eeafef97407c77cd420a (patch)
treedc1a6e0cb478a027dc8e3ceb2d156154436bb089 /src/mainwindow.cpp
parenti18n fixes (diff)
downloadrekonq-d44c64e440e8d551d528eeafef97407c77cd420a.tar.xz
This should fix the Ctrl+w bug. Anyway, it really doesn't solve it: there is a corner case
where the trick implemented doesn't work. We'll see if someone can fix also that.. BUG:233937
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 5a0b2568..dc1dc708 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -402,6 +402,7 @@ void MainWindow::setupActions()
// ============================== Indexed Tab Actions ====================================
a = new KAction(KIcon("tab-close"), i18n("&Close Tab"), this);
+ a->setShortcuts( KStandardShortcut::close() );
actionCollection()->addAction(QL1S("close_tab"), a);
connect(a, SIGNAL(triggered(bool)), m_view->tabBar(), SLOT(closeTab()));
@@ -1094,13 +1095,6 @@ void MainWindow::keyPressEvent(QKeyEvent *event)
return;
}
- // close current tab action
- if ((event->modifiers() == Qt::ControlModifier) && event->key() == Qt::Key_W)
- {
- m_view->closeTab(m_view->currentIndex());
- return;
- }
-
KMainWindow::keyPressEvent(event);
}