]> sigrok.org Git - pulseview.git/blobdiff - pv/mainwindow.cpp
SignalBase: Don't use static state
[pulseview.git] / pv / mainwindow.cpp
index 46f8a123ae8907b7d3793dd0b47eac9d3ba3bf1f..7e48e5a9f96a21f7c64cd9fe5a6d049d826ad70f 100644 (file)
@@ -52,7 +52,6 @@
 
 using std::bind;
 using std::dynamic_pointer_cast;
-using std::list;
 using std::make_shared;
 using std::map;
 using std::placeholders::_1;
@@ -135,10 +134,10 @@ shared_ptr<views::ViewBase> MainWindow::get_active_view() const
        QDockWidget *dock = nullptr;
 
        while (w) {
-           dock = qobject_cast<QDockWidget*>(w);
-           if (dock)
-               break;
-           w = w->parent();
+               dock = qobject_cast<QDockWidget*>(w);
+               if (dock)
+                       break;
+               w = w->parent();
        }
 
        // Get the view contained in the dock widget