if (action) {
int id = action->data().toInt();
- KConfig config(("kio_" + m_currentURL.scheme() + "rc").toLatin1());
+ KConfig config(QLatin1String("kio_%1rc").arg(m_currentURL.scheme()));
QString host = m_currentURL.host();
if (m_menu->menu()->actions().at(id)->isChecked()) {
QString charset = KCharsets::charsets()->encodingForName(m_encodingDescriptions.at(id));
{
// We have no choice but delete all higher domain level
// settings here since it affects what will be matched.
- KConfig config(("kio_" + m_currentURL.scheme() + "rc").toLatin1());
+ KConfig config(QLatin1String("kio_%1rc").arg(m_currentURL.scheme()));
- QStringList partList = m_currentURL.host().split('.', Qt::SkipEmptyParts);
+ QStringList partList = m_currentURL.host().split(QLatin1Char('.'), Qt::SkipEmptyParts);
if (!partList.isEmpty()) {
partList.erase(partList.begin());
qCDebug(DolphinDebug) << "Domain to remove: " << *it;
if (config.hasGroup(*it)) {
config.deleteGroup(*it);
- } else if (config.group("").hasKey(*it)) {
- config.group("").deleteEntry(*it); //don't know what group name is supposed to be XXX
+ } else if (config.group(QString()).hasKey(*it)) {
+ config.group(QString()).deleteEntry(*it); // don't know what group name is supposed to be XXX
}
}
}