diff options
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 3adc0ec9..63c10683 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -687,16 +687,25 @@ void MainView::detachTab(int index) return; WebTab *tab = webTab(index); - QString label = tab->view()->title(); - QWidget *bar = _bars->widget(index); - - closeTab(index, false); - - MainWindow *w = Application::instance()->newMainWindow(false); - w->mainView()->addTab(tab, Application::icon(tab->url()), label); - QStackedWidget *stack = qobject_cast<QStackedWidget *>(w->mainView()->urlBarWidget()); - stack->insertWidget(0, bar); - w->mainView()->updateTabBar(); + KUrl u = tab->url(); + kDebug() << u; + if( u.scheme() == QL1S("about") ) + { + closeTab(index); + Application::instance()->loadUrl(u, Rekonq::NewWindow); + } + else + { + QString label = tab->view()->title(); + QWidget *bar = _bars->widget(index); + closeTab(index, false); + + MainWindow *w = Application::instance()->newMainWindow(false); + w->mainView()->addTab(tab, Application::icon( u ), label); + QStackedWidget *stack = qobject_cast<QStackedWidget *>(w->mainView()->urlBarWidget()); + stack->insertWidget(0, bar); + w->mainView()->updateTabBar(); + } } |