From 5450060f6fdef2532709706bac2f85d1fc114dda Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Sat, 28 Jan 2012 20:32:12 +0800 Subject: [PATCH] 'New Tab' and 'New Window' should always use the default profile REVIEW: 103809 --- src/MainWindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 9e1606d35..7908394b4 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -398,12 +398,14 @@ void MainWindow::openUrls(const QList& 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()