diff --git a/linphone-desktop/assets/languages/fr.ts b/linphone-desktop/assets/languages/fr.ts
index 66a45e4e1..e5e87fe40 100644
--- a/linphone-desktop/assets/languages/fr.ts
+++ b/linphone-desktop/assets/languages/fr.ts
@@ -595,30 +595,19 @@ Url du serveur non configurée.
Presence
presenceOnline
- En ligne
+ En ligne
presenceBusy
-
+ Occupé
presenceDoNotDisturb
-
+ Ne pas déranger
presenceOffline
- Hors-ligne
-
-
-
- PresenceString
-
- presenceOnline
- En ligne
-
-
- presenceOffline
- Hors-ligne
+ Hors-ligne
diff --git a/linphone-desktop/src/components/presence/Presence.cpp b/linphone-desktop/src/components/presence/Presence.cpp
index a049cb03e..d97620abb 100644
--- a/linphone-desktop/src/components/presence/Presence.cpp
+++ b/linphone-desktop/src/components/presence/Presence.cpp
@@ -63,7 +63,8 @@ QString Presence::getPresenceLevelIconName (const PresenceLevel &level) {
case Red:
return "led_red";
case White:
- default:
return "led_white";
+ default:
+ return "";
}
}
diff --git a/linphone-desktop/src/components/settings/AccountSettingsModel.cpp b/linphone-desktop/src/components/settings/AccountSettingsModel.cpp
index b95ba2e9e..84ab3375a 100644
--- a/linphone-desktop/src/components/settings/AccountSettingsModel.cpp
+++ b/linphone-desktop/src/components/settings/AccountSettingsModel.cpp
@@ -57,16 +57,6 @@ void AccountSettingsModel::setUsername (const QString &username) {
// -----------------------------------------------------------------------------
-Presence::PresenceLevel AccountSettingsModel::getPresenceLevel () const {
- return Presence::Green;
-}
-
-Presence::PresenceStatus AccountSettingsModel::getPresenceStatus () const {
- return Presence::Online;
-}
-
-// -----------------------------------------------------------------------------
-
QString AccountSettingsModel::getSipAddress () const {
return ::Utils::linphoneStringToQString(getDefaultSipAddress()->asStringUriOnly());
}
diff --git a/linphone-desktop/src/components/settings/AccountSettingsModel.hpp b/linphone-desktop/src/components/settings/AccountSettingsModel.hpp
index 08f9f0f0d..35141a114 100644
--- a/linphone-desktop/src/components/settings/AccountSettingsModel.hpp
+++ b/linphone-desktop/src/components/settings/AccountSettingsModel.hpp
@@ -23,8 +23,7 @@
#ifndef ACCOUNT_SETTINGS_MODEL_H_
#define ACCOUNT_SETTINGS_MODEL_H_
-#include "../presence/Presence.hpp"
-
+#include
#include
// =============================================================================
@@ -36,9 +35,6 @@ class AccountSettingsModel : public QObject {
Q_PROPERTY(QString sipAddress READ getSipAddress NOTIFY accountUpdated);
Q_PROPERTY(QVariantList accounts READ getAccounts NOTIFY accountUpdated);
- Q_PROPERTY(Presence::PresenceLevel presenceLevel READ getPresenceLevel CONSTANT);
- Q_PROPERTY(Presence::PresenceStatus presenceStatus READ getPresenceStatus CONSTANT);
-
public:
AccountSettingsModel (QObject *parent = Q_NULLPTR) : QObject(parent) {}
@@ -51,9 +47,6 @@ private:
QString getUsername () const;
void setUsername (const QString &username);
- Presence::PresenceLevel getPresenceLevel () const;
- Presence::PresenceStatus getPresenceStatus () const;
-
QString getSipAddress () const;
QVariantList getAccounts () const;
diff --git a/linphone-desktop/ui/modules/Common/Form/ComboBox.js b/linphone-desktop/ui/modules/Common/Form/ComboBox.js
index 885863251..e4b0ca8ba 100644
--- a/linphone-desktop/ui/modules/Common/Form/ComboBox.js
+++ b/linphone-desktop/ui/modules/Common/Form/ComboBox.js
@@ -21,7 +21,7 @@ function getSelectedEntryIcon () {
) || ''
}
-function getEntryIcon () {
+function getEntryIcon (item) {
var iconRole = comboBox.iconRole
return (iconRole.length && item.flattenedModel[iconRole]) || ''
}
diff --git a/linphone-desktop/ui/modules/Common/Form/ComboBox.qml b/linphone-desktop/ui/modules/Common/Form/ComboBox.qml
index 019a48018..f3cccb449 100644
--- a/linphone-desktop/ui/modules/Common/Form/ComboBox.qml
+++ b/linphone-desktop/ui/modules/Common/Form/ComboBox.qml
@@ -111,7 +111,7 @@ ComboBox {
width: item.width
Icon {
- icon: Logic.getEntryIcon()
+ icon: Logic.getEntryIcon(item)
iconSize: ComboBoxStyle.delegate.contentItem.iconSize
visible: icon.length > 0