D-Bus + templates: on-disk templates were not listed
Same bug as in command line (previous commit). Scanning for on-disk templates only considered Bluetooth devices. For server templates, only the ones built into SyncEvolution were returned.
This commit is contained in:
parent
bbe95b753c
commit
fe67c53de5
1 changed files with 5 additions and 1 deletions
|
@ -2819,10 +2819,14 @@ ReadOperations::ReadOperations(const std::string &config_name, DBusServer &serve
|
|||
void ReadOperations::getConfigs(bool getTemplates, std::vector<std::string> &configNames)
|
||||
{
|
||||
if (getTemplates) {
|
||||
// get device list from dbus server, currently only bluetooth devices
|
||||
SyncConfig::DeviceList devices;
|
||||
|
||||
// get device list from dbus server, currently only bluetooth devices
|
||||
m_server.getDeviceList(devices);
|
||||
|
||||
// also include server templates in search
|
||||
devices.push_back(SyncConfig::DeviceDescription("", "", SyncConfig::MATCH_FOR_CLIENT_MODE));
|
||||
|
||||
//clear existing templates in dbus server
|
||||
m_server.clearPeerTempls();
|
||||
|
||||
|
|
Loading…
Reference in a new issue