]> sigrok.org Git - pulseview.git/commitdiff
MainWindow: Fix dock nesting
authorSoeren Apel <redacted>
Tue, 4 Oct 2016 17:52:56 +0000 (19:52 +0200)
committerSoeren Apel <redacted>
Sun, 4 Dec 2016 13:37:37 +0000 (14:37 +0100)
The nesting flag was applied to the wrong QMainWindow
after the introduction of the tab widget.

pv/mainwindow.cpp

index 31e9f2f9764e8b4603b0264401e065153b597278..a04396234c72efda44d4592c641500275f4b82da 100644 (file)
@@ -239,6 +239,8 @@ shared_ptr<Session> MainWindow::add_session()
        session_windows_[session] = window;
        session_selector_.addTab(window, name);
 
+       window->setDockNestingEnabled(true);
+
        shared_ptr<views::ViewBase> main_view =
                add_view(name, views::ViewTypeTrace, *session);
 
@@ -312,8 +314,6 @@ void MainWindow::setup_ui()
        connect(&session_selector_, SIGNAL(tabCloseRequested(int)),
                this, SLOT(on_tab_close_requested(int)));
 
-       setDockNestingEnabled(true);
-
        connect(static_cast<QApplication *>(QCoreApplication::instance()),
                SIGNAL(focusChanged(QWidget*, QWidget*)),
                this, SLOT(on_focus_changed()));