]> sigrok.org Git - pulseview.git/blobdiff - pv/mainwindow.cpp
Random simplifications, cosmetics/whitespace/consistency fixes.
[pulseview.git] / pv / mainwindow.cpp
index dd8be229e97acc9b29065124d6431b103c145b84..7e48e5a9f96a21f7c64cd9fe5a6d049d826ad70f 100644 (file)
@@ -134,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