X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=e1073144f7f97ca931b4733b27eead0dad3afaa0;hb=ae5f66281c38a76dcb7011907d7a86a99b9dd4dd;hp=f7c47122737216fba1fa32472d70f10cf6b5b71c;hpb=5f66b56eb6616c9c626d6f48abf1da0d8a652444;p=pulseview.git
diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp
index f7c4712..e107314 100644
--- a/pv/mainwindow.cpp
+++ b/pv/mainwindow.cpp
@@ -14,8 +14,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
#include
@@ -280,8 +279,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;
}
}