Skip to content
Snippets Groups Projects
Commit 2808fcb6 authored by Alexandre Lision's avatar Alexandre Lision Committed by gerrit2
Browse files

ringtone: override default ringtone path

Change-Id: I290990c61c36df76b5d8c31747d48d96b62d7068
Tuleap: #338
parent 7cf1b77a
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@
#include <QtCore/QCoreApplication>
#include <QtCore/QItemSelectionModel>
#include <QtCore/QMimeData>
#include <QtCore/QDir>
//Ring daemon
#include <account_const.h>
......@@ -897,6 +898,14 @@ Account* AccountModel::add(const QString& alias, const Account::Protocol proto)
if (a->isNew() || a->id() != DRing::Account::ProtocolNames::IP2IP)
d_ptr->enableProtocol(proto);
// Override ringtone path
#if defined(Q_OS_OSX)
QDir ringtonesDir(QCoreApplication::applicationDirPath());
ringtonesDir.cdUp();
ringtonesDir.cd("Resources/ringtones/");
a->setRingtonePath(ringtonesDir.path()+"/default.wav");
#endif
emit accountAdded(a);
editState();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment