Commit 13bea18e authored by Wescoeur's avatar Wescoeur

feat(src/app/App): remove `convertUrlToLocalPath` function

parent 2f59a66a
...@@ -273,10 +273,6 @@ void App::checkForUpdate () { ...@@ -273,10 +273,6 @@ void App::checkForUpdate () {
CoreManager::getInstance()->getCore()->checkForUpdate(LINPHONE_QT_GIT_VERSION); CoreManager::getInstance()->getCore()->checkForUpdate(LINPHONE_QT_GIT_VERSION);
} }
QString App::convertUrlToLocalPath (const QUrl &url) {
return QDir::toNativeSeparators(url.toLocalFile());
}
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
bool App::hasFocus () const { bool App::hasFocus () const {
......
...@@ -79,7 +79,6 @@ public: ...@@ -79,7 +79,6 @@ public:
Q_INVOKABLE static void smartShowWindow (QQuickWindow *window); Q_INVOKABLE static void smartShowWindow (QQuickWindow *window);
Q_INVOKABLE static void checkForUpdate (); Q_INVOKABLE static void checkForUpdate ();
Q_INVOKABLE static QString convertUrlToLocalPath (const QUrl &url);
public slots: public slots:
void quit (); void quit ();
......
...@@ -119,7 +119,7 @@ function cancel () { ...@@ -119,7 +119,7 @@ function cancel () {
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
function setAvatar (url) { function setAvatar (url) {
contactEdit._vcard.avatar = Linphone.App.convertUrlToLocalPath(url) contactEdit._vcard.avatar = Utils.getSystemPathFromUri(url)
} }
function setUsername (username) { function setUsername (username) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment