diff options
-rw-r--r-- | qt-ui/mainwindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 6cf7160b7..a3247636e 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -401,7 +401,12 @@ void MainWindow::planCanceled() { removeFakeDiveForAddAndPlan(); showProfile(); - dive_list()->restoreSelection(); + // restoring the selection causes a crash - somehow the model appears to be confused + // or maybe our internal data structures are messed up? + // commenting this out fixes the crash + // + // dive_list()->restoreSelection(); + dive_list()->reload(DiveTripModel::CURRENT); refreshDisplay(); } |