| 141 | } |
| 142 | |
| 143 | void KrRemoteEncodingMenu::chooseEncoding(QString encoding) |
| 144 | { |
| 145 | QUrl currentURL = ACTIVE_PANEL->virtualPath(); |
| 146 | |
| 147 | KConfig config(("kio_" + currentURL.scheme() + "rc").toLatin1()); |
| 148 | QString host = currentURL.host(); |
| 149 | |
| 150 | QString charset = KCharsets::charsets()->encodingForName(encoding); |
| 151 | |
| 152 | KConfigGroup group(&config, host); |
| 153 | group.writeEntry(DATA_KEY, charset); |
| 154 | config.sync(); |
| 155 | |
| 156 | // Update the io-slaves... |
| 157 | updateKIOSlaves(); |
| 158 | } |
| 159 | |
| 160 | void KrRemoteEncodingMenu::slotReload() |
| 161 | { |
nothing calls this directly
no test coverage detected