summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-08-21 17:53:13 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-21 10:16:06 -0700
commit3437666010c3c9c725644e5d789cbb0faa3794c2 (patch)
tree3fa952bd74d0af86cb1b9bfe6a9d4357fe8d78f2 /qt-ui/profile
parentc7d8e72607870fee24fd03df3b54877a80c55102 (diff)
downloadsubsurface-3437666010c3c9c725644e5d789cbb0faa3794c2.tar.gz
Display error messages in planner
After a replot, check if there is an error message to display. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/profilewidget2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index c776f9fea..514edcfc5 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()