mirror of https://notabug.org/acetone/ircabot.git
substr in qt style
parent
591402d121
commit
6471f220fa
|
@ -214,7 +214,7 @@ void ApplicationData::readConfig()
|
|||
|
||||
//// Инициализация информации о подключениях
|
||||
ConnectionData newConnection;
|
||||
newConnection.displayName = currentSection.toStdString().substr(1, currentSection.indexOf(']')-1).c_str();
|
||||
newConnection.displayName = currentSection.mid(1, currentSection.indexOf(']')-1);
|
||||
|
||||
newConnection.address = global::getValue(currentSection, "address");
|
||||
if (newConnection.address.isEmpty()) {
|
||||
|
|
Loading…
Reference in New Issue