X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fcursorheader.cpp;h=1a656eb19f5edac14b7595c7db6569fa45de0822;hb=2496bf451ebd50b9ab67a1af9b979761c0fbad49;hp=3e2944e09269304a823db91b49fe6ecaef06f2da;hpb=ad341c3a893c66cfd59ac66eedb1de405ed0dbbb;p=pulseview.git diff --git a/pv/view/cursorheader.cpp b/pv/view/cursorheader.cpp index 3e2944e..1a656eb 100644 --- a/pv/view/cursorheader.cpp +++ b/pv/view/cursorheader.cpp @@ -30,6 +30,7 @@ #include using std::shared_ptr; +using std::vector; namespace pv { namespace view { @@ -59,9 +60,9 @@ QSize CursorHeader::sizeHint() const void CursorHeader::clear_selection() { - CursorPair &cursors = view_.cursors(); - cursors.first()->select(false); - cursors.second()->select(false); + const vector< shared_ptr > items(view_.time_items()); + for (auto &i : items) + i->select(false); update(); }