diff --git a/applicationdata.cpp b/applicationdata.cpp index 85b8d1d..b1d0cce 100644 --- a/applicationdata.cpp +++ b/applicationdata.cpp @@ -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()) {