mirror of https://github.com/buggins/dlangui.git
Fixing irrclient example compilation by specifiying which toUTF8 to use in settingsdlg.d.
This commit is contained in:
parent
34172b8a31
commit
0d2dc8fae5
|
@ -81,18 +81,18 @@ class SettingsDialog : Dialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
void controlsToSettings() {
|
void controlsToSettings() {
|
||||||
_settings.host = toUTF8(childById("edHost").text);
|
_settings.host = std.utf.toUTF8(childById("edHost").text);
|
||||||
try {
|
try {
|
||||||
_settings.port = cast(ushort)to!ulong(childById("edPort").text);
|
_settings.port = cast(ushort)to!ulong(childById("edPort").text);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// ignore
|
// ignore
|
||||||
_settings.port = 6667;
|
_settings.port = 6667;
|
||||||
}
|
}
|
||||||
_settings.nick = toUTF8(childById("edNick").text);
|
_settings.nick = std.utf.toUTF8(childById("edNick").text);
|
||||||
_settings.alternateNick = toUTF8(childById("edAlternateNick").text);
|
_settings.alternateNick = std.utf.toUTF8(childById("edAlternateNick").text);
|
||||||
_settings.userName = toUTF8(childById("edUsername").text);
|
_settings.userName = std.utf.toUTF8(childById("edUsername").text);
|
||||||
_settings.userRealName = toUTF8(childById("edRealName").text);
|
_settings.userRealName = std.utf.toUTF8(childById("edRealName").text);
|
||||||
_settings.defChannel = toUTF8(childById("edChannel").text);
|
_settings.defChannel = std.utf.toUTF8(childById("edChannel").text);
|
||||||
}
|
}
|
||||||
|
|
||||||
override void close(const Action action) {
|
override void close(const Action action) {
|
||||||
|
|
Loading…
Reference in New Issue