summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp34
1 files changed, 5 insertions, 29 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index ee028abb..91ee8028 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -74,9 +74,6 @@ MainWindow::MainWindow()
// updating rekonq configuration
slotUpdateConf();
- // creating a new tab
- m_view->newTab();
-
// creating a centralWidget containing m_view and the hidden findbar
QWidget *centralWidget = new QWidget;
QVBoxLayout *layout = new QVBoxLayout;
@@ -444,9 +441,8 @@ void MainWindow::slotUpdateWindowTitle(const QString &title)
void MainWindow::slotFileNew()
{
- Application::instance()->newMainWindow();
- MainWindow *mw = Application::instance()->mainWindow();
- mw->slotHome();
+ Application::instance()->newTab();
+ slotHome();
}
@@ -520,13 +516,9 @@ void MainWindow::slotPrivateBrowsing()
{
settings->setAttribute(QWebSettings::PrivateBrowsingEnabled, false);
- QList<MainWindow*> windows = Application::instance()->mainWindows();
- for (int i = 0; i < windows.count(); ++i)
- {
- MainWindow *window = windows.at(i);
- window->m_lastSearch = QString::null;
- window->tabWidget()->clear();
- }
+ MainWindow* win = Application::instance()->mainWindow();
+ win->m_lastSearch = QString::null;
+ win->tabWidget()->clear();
}
}
@@ -726,22 +718,6 @@ void MainWindow::slotAboutToShowBackMenu()
}
-// void MainWindow::slotShowWindow()
-// {
-// if (KAction *action = qobject_cast<KAction*>(sender()))
-// {
-// QVariant v = action->data();
-// if (v.canConvert<int>())
-// {
-// int offset = qvariant_cast<int>(v);
-// QList<MainWindow*> windows = Application::instance()->mainWindows();
-// windows.at(offset)->activateWindow();
-// windows.at(offset)->currentTab()->setFocus();
-// }
-// }
-// }
-
-
void MainWindow::slotOpenActionUrl(QAction *action)
{
int offset = action->data().toInt();