X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=d65537483c8f1a19bd91e6ccd93dee7014b80bfc;hp=f7c47122737216fba1fa32472d70f10cf6b5b71c;hb=f420385094dc7392e6bcec494d800f1d4b34f082;hpb=5f66b56eb6616c9c626d6f48abf1da0d8a652444 diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index f7c4712..d655374 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -280,8 +280,9 @@ void MainWindow::remove_session(shared_ptr session) // that Qt keeps a pointer to the view around entry.second->setParent(0); - // Remove this entry from the container + // Remove this entry from the container and stop iterating. view_docks_.erase(entry.first); + break; } }