summaryrefslogtreecommitdiff
path: root/src/tabwindow/tabwidget.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-04-28 17:04:33 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-04-28 17:04:33 +0200
commit53cd1dfd2d5ee7c464dc7f681616325e63814327 (patch)
tree3a9717f57d71bacd2774ec4a311691764185e3dd /src/tabwindow/tabwidget.cpp
parentAvoid a possible crash if rekonqWindow is not properly detected (diff)
downloadrekonq-53cd1dfd2d5ee7c464dc7f681616325e63814327.tar.xz
Properly register rekonq window to activities
Diffstat (limited to 'src/tabwindow/tabwidget.cpp')
-rw-r--r--src/tabwindow/tabwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tabwindow/tabwidget.cpp b/src/tabwindow/tabwidget.cpp
index 12341759..1b5bca30 100644
--- a/src/tabwindow/tabwidget.cpp
+++ b/src/tabwindow/tabwidget.cpp
@@ -720,7 +720,7 @@ void TabWidget::detachTab(int index, RekonqWindow *toWindow)
RekonqWindow *w = 0;
w = (toWindow == 0)
- ? new RekonqWindow(false)
+ ? rApp->newWindow(false)
: toWindow;
TabWidget *hostTabWidget = w->tabWidget();