From c4d2a284caee4ee68f273f4acd0da3b38510bcd6 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 27 Oct 2009 17:14:32 +0100 Subject: Fixing (?) close tab action --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c1a1428a..7af0e1e3 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -357,7 +357,7 @@ void MainWindow::setupActions() a = new KAction(KIcon("tab-close"), i18n("&Close Tab"), this); a->setShortcut(KShortcut(Qt::CTRL + Qt::Key_W)); actionCollection()->addAction(QLatin1String("close_tab"), a); - connect(a, SIGNAL(triggered(bool)), m_view, SLOT(slotCloseTab())); + connect(a, SIGNAL(triggered(bool)), m_view->tabBar(), SLOT(closeTab())); a = new KAction(KIcon("tab-duplicate"), i18n("Clone Tab"), this); actionCollection()->addAction(QLatin1String("clone_tab"), a); -- cgit v1.2.1