diff options
Diffstat (limited to 'qt-models/divelocationmodel.cpp')
-rw-r--r-- | qt-models/divelocationmodel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-models/divelocationmodel.cpp b/qt-models/divelocationmodel.cpp index 05d7df709..5aa3a3ac8 100644 --- a/qt-models/divelocationmodel.cpp +++ b/qt-models/divelocationmodel.cpp @@ -69,9 +69,10 @@ QVariant LocationInformationModel::data(const QModelIndex &index, int role) cons if (index.row() == 1) { struct dive_site *ds = get_dive_site_name_start_which_str(textField->text()); if (!ds) - return "NOT HERE"; + return INVALID_DIVE_SITE_NAME; if (QString(ds->name) == textField->text()) - return "NOT HERE"; + return INVALID_DIVE_SITE_NAME; + } return textField->text(); } |