mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
feat(src/app/App): remove convertUrlToLocalPath function
This commit is contained in:
parent
2f59a66ad7
commit
13bea18e5e
3 changed files with 1 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue