'New Tab' and 'New Window' should always use the default profile

REVIEW: 103809
This commit is contained in:
Jekyll Wu
2012-01-28 20:32:12 +08:00
parent 3309e5b122
commit 5450060f6f

View File

@@ -398,12 +398,14 @@ void MainWindow::openUrls(const QList<KUrl>& urls)
void MainWindow::newTab()
{
emit newSessionRequest(_defaultProfile , activeSessionDir() , _viewManager);
Profile::Ptr defaultProfile = SessionManager::instance()->defaultProfile();
emit newSessionRequest(defaultProfile , activeSessionDir() , _viewManager);
}
void MainWindow::newWindow()
{
emit newWindowRequest(_defaultProfile , activeSessionDir());
Profile::Ptr defaultProfile = SessionManager::instance()->defaultProfile();
emit newWindowRequest(defaultProfile , activeSessionDir());
}
bool MainWindow::queryClose()