diff --git a/qt-gui.cpp b/qt-gui.cpp
index bab27a318..d85198d68 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -157,6 +157,7 @@ const char *get_dc_nickname(const char *model, uint32_t deviceid)
void set_dc_nickname(struct dive *dive)
{
/* needs Qt implementation */
+ /*well, I don't know how to do this here... = ( */
}
QString get_depth_string(depth_t depth, bool showunit)
diff --git a/qt-ui/divecomputermanagementdialog.ui b/qt-ui/divecomputermanagementdialog.ui
index abda9f5ce..6685e842e 100644
--- a/qt-ui/divecomputermanagementdialog.ui
+++ b/qt-ui/divecomputermanagementdialog.ui
@@ -17,51 +17,8 @@
-
- -
-
-
- Qt::Horizontal
-
-
- QDialogButtonBox::Cancel|QDialogButtonBox::Ok
-
-
-
-
-
- buttonBox
- accepted()
- DiveComputerManagementDialog
- accept()
-
-
- 248
- 254
-
-
- 157
- 274
-
-
-
-
- buttonBox
- rejected()
- DiveComputerManagementDialog
- reject()
-
-
- 316
- 260
-
-
- 286
- 274
-
-
-
-
+
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 787dbd8cf..6cb1fa079 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -1198,10 +1198,12 @@ Qt::ItemFlags DiveComputerModel::flags(const QModelIndex& index) const
bool DiveComputerModel::setData(const QModelIndex& index, const QVariant& value, int role)
{
struct device_info *nnl = head_of_device_info_list();
+
for(int i = 0; i < index.row(); i++){
nnl = nnl->next;
}
QByteArray v = value.toByteArray();
nnl->nickname = strdup(v.data()); // how should I free this before setting a new one?
+ // set_dc_nickname(dive); -> should this be used instead?
}