GUI: possible end-slash mismatch in dir comparison would prevent enabling the real-time indexer config tool

This commit is contained in:
Jean-Francois Dockes 2016-04-11 18:40:13 +02:00
parent 9a4d7de7f9
commit c3595b3e12

View file

@ -120,6 +120,7 @@ bool RclConfig::isDefaultConfig() const
{ {
string defaultconf = path_cat(path_homedata(), string defaultconf = path_cat(path_homedata(),
path_defaultrecollconfsubdir()); path_defaultrecollconfsubdir());
path_catslash(defaultconf);
string specifiedconf = path_canon(m_confdir); string specifiedconf = path_canon(m_confdir);
path_catslash(specifiedconf); path_catslash(specifiedconf);
return !defaultconf.compare(specifiedconf); return !defaultconf.compare(specifiedconf);