From 7c5cc794f09e79a08dc9853e54172852216b6342 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 21 Aug 2015 17:53:13 +0200 Subject: [PATCH] Display error messages in planner After a replot, check if there is an error message to display. Signed-off-by: Robert C. Helling --- qt-ui/profile/profilewidget2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index c776f9f..514edcf 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -676,6 +676,8 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) MainWindow::instance()->turnOffNdlTts(); MainWindow::instance()->getNotificationWidget()->showNotification(tr("Show NDL / TTS was disabled because of excessive processing time"), KMessageWidget::Error); } + MainWindow::instance()->getNotificationWidget()->showNotification(get_error_string(), KMessageWidget::Error); + } void ProfileWidget2::recalcCeiling() -- 1.9.5 (Apple Git-50.3)