[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [bluedevil/bluezqt] src/sendfile: Send file wizard: Attempt to start obexd when starting wizard
From:       David Rosca <nowrep () gmail ! com>
Date:       2015-03-31 20:39:45
Message-ID: E1Yd2wr-0004V3-7G () scm ! kde ! org
[Download RAW message or body]

Git commit f44bac2fa7e1da4adab441b2dfe197552ba18c73 by David Rosca.
Committed on 31/03/2015 at 20:36.
Pushed by drosca into branch 'bluezqt'.

Send file wizard: Attempt to start obexd when starting wizard

If obexd is not running, sending files to the device would fail,
so this attempts to start obexd (with DBus activation) on wizard
startup.

M  +3    -0    src/sendfile/sendfilewizard.cpp

http://commits.kde.org/bluedevil/f44bac2fa7e1da4adab441b2dfe197552ba18c73

diff --git a/src/sendfile/sendfilewizard.cpp b/src/sendfile/sendfilewizard.cpp
index 4c0c7b4..37b78dd 100644
--- a/src/sendfile/sendfilewizard.cpp
+++ b/src/sendfile/sendfilewizard.cpp
@@ -64,6 +64,9 @@ SendFileWizard::SendFileWizard(const QString &device, const QStringList &files)
     BluezQt::InitManagerJob *initJob = m_manager->init();
     initJob->start();
     connect(initJob, &BluezQt::InitManagerJob::result, this, &SendFileWizard::initJobResult);
+
+    // Make sure that obexd is running
+    BluezQt::ObexManager::startService();
 }
 
 SendFileWizard::~SendFileWizard()
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic