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:
Patrick Ohly 2011-05-18 17:25:37 +02:00
parent bbe95b753c
commit fe67c53de5

View file

@ -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();