X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=7e48e5a9f96a21f7c64cd9fe5a6d049d826ad70f;hp=46f8a123ae8907b7d3793dd0b47eac9d3ba3bf1f;hb=5d9fe823db16bc4a537e600451876a735d20a98d;hpb=6f925ba9d6faf1077b73c5a5808259576081716a diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 46f8a123..7e48e5a9 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -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 MainWindow::get_active_view() const QDockWidget *dock = nullptr; while (w) { - dock = qobject_cast(w); - if (dock) - break; - w = w->parent(); + dock = qobject_cast(w); + if (dock) + break; + w = w->parent(); } // Get the view contained in the dock widget