projects
/
profile
/
ivi
/
hfdialer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hfdialer now automatically connects to your phone. It will reconnect if
[profile/ivi/hfdialer.git]
/
src
/
managerproxy.cpp
diff --git
a/src/managerproxy.cpp
b/src/managerproxy.cpp
index
2f2cbed
..
e89ec3c
100644
(file)
--- a/
src/managerproxy.cpp
+++ b/
src/managerproxy.cpp
@@
-53,6
+53,9
@@
ManagerProxy::ManagerProxy(const QString &service,
}
gManager = this;
}
gManager = this;
+
+ if (m_modem && m_modem->isValid() && !m_modem->powered())
+ m_modem->setPowered(true);
}
ManagerProxy::~ManagerProxy()
}
ManagerProxy::~ManagerProxy()
@@
-185,7
+188,14
@@
void ManagerProxy::setModem(QString modemPath)
if (m_modem &&
m_modem->isValid() &&
m_modem->path() == modemPath)
if (m_modem &&
m_modem->isValid() &&
m_modem->path() == modemPath)
+ {
+ if (!m_modem->powered())
+ m_modem->setPowered(true);
+
+ qDebug()<<"BJONES setting modem, but we already have it! If not powered, power that thing!";
+
return;
return;
+ }
if (m_modem)
{
if (m_modem)
{