diff options
Diffstat (limited to 'qt-ui/locationinformation.cpp')
-rw-r--r-- | qt-ui/locationinformation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 39a8341cd..2e296450d 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -256,8 +256,8 @@ void LocationManagementEditHelper::handleActivation(const QModelIndex& activated activated.row(), LocationInformationModel::UUID); last_uuid = uuidIdx.data().toInt(); - // Special case: first option, add dive site. - if (activated.row() == 0) { + // Special case: first two options: add dive site. + if (activated.row() < 2) { qDebug() << "Setting to " << activated.data().toString(); emit setLineEditText(activated.data().toString()); } |