diff options
-rw-r--r-- | qt-ui/maintab.cpp | 3 | ||||
-rw-r--r-- | qt-ui/maintab.h | 2 | ||||
-rw-r--r-- | qt-ui/maintab.ui | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 0e6dce0f4..e8df29368 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -838,8 +838,9 @@ void MainTab::on_buddy_textChanged() markChangedWidget(ui.buddy); } -void MainTab::on_divemaster_textChanged(const QString& text) +void MainTab::on_divemaster_textChanged() { + QString text = ui.divemaster->toPlainText().split(",", QString::SkipEmptyParts).join(", "); EDIT_SELECTED_DIVES( EDIT_TEXT(mydive->divemaster, text) ); markChangedWidget(ui.divemaster); } diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index 313149f0e..c5afd2f55 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -68,7 +68,7 @@ public slots: void rejectChanges(); void on_location_textChanged(const QString& text); void on_coordinates_textChanged(const QString& text); - void on_divemaster_textChanged(const QString& text); + void on_divemaster_textChanged(); void on_buddy_textChanged(); void on_suit_textChanged(const QString& text); void on_notes_textChanged(); diff --git a/qt-ui/maintab.ui b/qt-ui/maintab.ui index b2ab316bf..276c7922f 100644 --- a/qt-ui/maintab.ui +++ b/qt-ui/maintab.ui @@ -136,7 +136,7 @@ </widget> </item> <item row="8" column="0"> - <widget class="QLineEdit" name="divemaster"> + <widget class="TagWidget" name="divemaster"> <property name="readOnly"> <bool>false</bool> </property> |