From bc957dd368d53e9ebbc8faf07f8826dd7575bce2 Mon Sep 17 00:00:00 2001
From: Emmanuel Lepage Vallee <elv1313@gmail.com>
Date: Thu, 20 Apr 2017 20:51:01 -0400
Subject: [PATCH] accountmodel: Make the alias anti-duplication function
 invokable

For QML and tests

Change-Id: I5957cc0e96a8476e60b1d325f00c49d425270bf0
Reviewed-by: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
---
 src/accountmodel.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/accountmodel.h b/src/accountmodel.h
index 93ef22d5..af7ee953 100644
--- a/src/accountmodel.h
+++ b/src/accountmodel.h
@@ -68,7 +68,7 @@ public:
    Q_INVOKABLE Account* getById                     ( const QByteArray& id, bool ph = false) const;
    int                  size                        (                                      ) const;
    Account*             getAccountByModelIndex      ( const QModelIndex& item              ) const;
-   static QString       getSimilarAliasIndex        ( const QString& alias                 )      ;
+   Q_INVOKABLE static QString getSimilarAliasIndex  ( const QString& alias                 )      ;
    Account*             ip2ip                       (                                      ) const;
    QList<Account*>      getAccountsByProtocol       ( const Account::Protocol protocol     ) const;
    bool                 isPresenceEnabled           (                                      ) const;
-- 
GitLab