diff options
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index cb1ffea2d..53c24a099 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -451,7 +451,7 @@ void MainWindow::on_actionReplanDive_triggered() { if (!plannerStateClean()) return; - if (!current_dive || strcmp(current_dive->dc.model, "planned dive")) { + if (!current_dive || !current_dive->dc.model || strcmp(current_dive->dc.model, "planned dive")) { qDebug() << current_dive->dc.model; return; } |