summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-10-12 06:28:14 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-10-12 06:28:14 (GMT)
commit33078d2f99b52f2fc46b906909a76b7b1ff99f08 (patch)
tree9b2f79b5b6939ab19bc413a362b56de131aea89b
parente94666fe77c9e3d3d16a97ca93280fa0026f81d9 (diff)
Fix: use currentIndex instead of comparing currentText against english version
-rw-r--r--src/lib/marble/FlyToEditWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/marble/FlyToEditWidget.cpp b/src/lib/marble/FlyToEditWidget.cpp
index 330b998..5dd3dd8 100644
--- a/src/lib/marble/FlyToEditWidget.cpp
+++ b/src/lib/marble/FlyToEditWidget.cpp
@@ -135,9 +135,9 @@ void FlyToEditWidget::save()
flyToElement()->setDuration(m_durationSpin->value());
- if (m_modeCombo->currentText() == QLatin1String("Smooth")) {
+ if (m_modeCombo->currentIndex() == 0) {
flyToElement()->setFlyToMode( GeoDataFlyTo::Smooth );
- } else if (m_modeCombo->currentText() == QLatin1String("Bounce")) {
+ } else if (m_modeCombo->currentIndex() == 1) {
flyToElement()->setFlyToMode( GeoDataFlyTo::Bounce );
}