Commit 13bea18e authored by Wescoeur's avatar Wescoeur

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

parent 2f59a66a
......@@ -273,10 +273,6 @@ void App::checkForUpdate () {
CoreManager::getInstance()->getCore()->checkForUpdate(LINPHONE_QT_GIT_VERSION);
}
QString App::convertUrlToLocalPath (const QUrl &url) {
return QDir::toNativeSeparators(url.toLocalFile());
}
// -----------------------------------------------------------------------------
bool App::hasFocus () const {
......
......@@ -79,7 +79,6 @@ public:
Q_INVOKABLE static void smartShowWindow (QQuickWindow *window);
Q_INVOKABLE static void checkForUpdate ();
Q_INVOKABLE static QString convertUrlToLocalPath (const QUrl &url);
public slots:
void quit ();
......
......@@ -119,7 +119,7 @@ function cancel () {
// -----------------------------------------------------------------------------
function setAvatar (url) {
contactEdit._vcard.avatar = Linphone.App.convertUrlToLocalPath(url)
contactEdit._vcard.avatar = Utils.getSystemPathFromUri(url)
}
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