Hi,

this patch makes error messages also show up in the planner (I noticed the 
numerics error message that Rick reported today to be shown only after save 
dive should have already been show in the planner).

Best
Robert

From 7c5cc794f09e79a08dc9853e54172852216b6342 Mon Sep 17 00:00:00 2001
From: "Robert C. Helling" <[email protected]>
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 <[email protected]>
---
 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)

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to