[PATCH 2/2] Update the text if DC changes

Miika Turkia miika.turkia at gmail.com
Wed Aug 5 09:01:50 PDT 2015


When switching from one DC to the next, the text of DC name is not updated due
to commit 487ddce3531f6b738affc84edf066bd0ea4a16bb. This patch re-inserts the
call to updateText() for the specific function to get the DC name updated
properly.

Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
I do not claim to understand this part of the code (at all), but this change
works for me.
---
 qt-ui/profile/divetextitem.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/qt-ui/profile/divetextitem.cpp b/qt-ui/profile/divetextitem.cpp
index 0831a02..9c7848c 100644
--- a/qt-ui/profile/divetextitem.cpp
+++ b/qt-ui/profile/divetextitem.cpp
@@ -62,6 +62,7 @@ void DiveTextItem::setText(const QString &t)
 			}
 		}
 		internalText = t;
+		updateText();
 	}
 }
 
-- 
2.1.4



More information about the subsurface mailing list