substr in qt style

master
const an teen 2022-01-04 10:42:07 -05:00
parent 591402d121
commit 6471f220fa
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {