<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi All,<br>
    </p>
    Am 24.06.2017 um 19:24 schrieb Dirk Hohndel:<br>
    <blockquote type="cite"
      cite="mid:4877ECE2-C032-4772-960C-64EF60AA36DB@hohndel.org"><br>
      <pre wrap="">This is one of the ASSERTs in Qt that are compiled out in production code,
so I'm pretty sure those with my binaries or who are compiling from source
using standard Qt libraries won't see it.

</pre>
      <blockquote type="cite">
        <pre wrap="">Now, it may be that (once more) this is because I run my self-compiled
Qt, and apparently it ends up adding more sanity checks and asserts
when built in developer mode. So maybe it's not so reproducible for
others as it is for me.

The relevant gdb back-trace seems to be:

DownloadFromDCWidget::on_downloadCancelRetryButton_clicked() ->
 DiveImportedModel::clearTable() ->
   QAbstractItemModel::beginRemoveRows()
</pre>
      </blockquote>
      <pre wrap="">
That should be easy to fix. In clearTable() do as the first line

if (lastIndex < firstIndex)
        return;

and you shouldn't see this crash anymore.
</pre>
    </blockquote>
    Just as a side note: Dirk and I already fixed s.th. very similar in
    this part of the code some time ago:<br>
<a class="moz-txt-link-freetext" href="https://github.com/Subsurface-divelog/subsurface/commit/02e768a61beda2730efff1e84f5e5b7341418acf">https://github.com/Subsurface-divelog/subsurface/commit/02e768a61beda2730efff1e84f5e5b7341418acf</a><br>
    <a class="moz-txt-link-freetext" href="https://github.com/Subsurface-divelog/subsurface/issues/332">https://github.com/Subsurface-divelog/subsurface/issues/332</a><br>
    <br>
    Best regards<br>
    Stefan<br>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
      <title></title>
      <meta name="GENERATOR" content="OpenOffice.org 3.3 (Win32)">
      <meta name="CREATED" content="0;0">
      <meta name="CHANGEDBY" content="Stefan Fuchs">
      <meta name="CHANGED" content="20120503;23115492">
      <style type="text/css">
        <!--
                P { color: #000000 }
        -->
        </style>
      <p>Stefan Fuchs<br>
        E-Mail: <a href="mailto:sfuchs@gmx.de">sfuchs@gmx.de</a></p>
    </div>
  </body>
</html>