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

This commit is contained in:
Wescoeur 2017-06-13 22:23:36 +02:00
parent 2f59a66ad7
commit 13bea18e5e
3 changed files with 1 additions and 6 deletions

View file

@ -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 {

View file

@ -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 ();

View file

@ -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) {